Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Force detach reason is timeout ForceDetachReasonTimeout = "timeout" // Force detach reason is the node has an out-of-service taint ForceDetachReasonOutOfService = "out-of-service" )
Variables ¶
View Source
var ( ForceDetachMetricCounter = metrics.NewCounterVec( &metrics.CounterOpts{ Subsystem: attachDetachController, Name: "attachdetach_controller_forced_detaches", Help: "Number of times the A/D Controller performed a forced detach", StabilityLevel: metrics.ALPHA, }, []string{"reason"}, ) )
Functions ¶
func RecordForcedDetachMetric ¶
func RecordForcedDetachMetric(forceDetachReason string)
RecordForcedDetachMetric register a forced detach metric.
func Register ¶
func Register(pvcLister corelisters.PersistentVolumeClaimLister, pvLister corelisters.PersistentVolumeLister, podLister corelisters.PodLister, asw cache.ActualStateOfWorld, dsw cache.DesiredStateOfWorld, pluginMgr *volume.VolumePluginMgr, csiMigratedPluginManager csimigration.PluginManager, intreeToCSITranslator csimigration.InTreeToCSITranslator)
Register registers metrics in A/D Controller.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.