nodes

package
v0.0.0-...-6526340 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL