Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VolumeUsageCollector ¶
type VolumeUsageCollector struct {
// contains filtered or unexported fields
}
VolumeUsageCollector collects volume real usage from kubelet's metrics periodically.
func NewVolumeUsageCollector ¶
func NewVolumeUsageCollector(nodeLister corelisters.NodeLister) *VolumeUsageCollector
NewVolumeUsageCollector creates a VolumeUsageCollector.
func (*VolumeUsageCollector) GetUsage ¶
func (c *VolumeUsageCollector) GetUsage(namespace, name string, nodeNames []string) (int64, bool)
GetUsage returns the real usage of a volume.
func (*VolumeUsageCollector) Start ¶
func (c *VolumeUsageCollector) Start(stopCh <-chan struct{})
Start starts the collector.
Click to show internal directories.
Click to hide internal directories.