package expand
import "k8s.io/kubernetes/pkg/controller/volume/expand"
Package expand implements interfaces that attempt to resize a pvc by adding pvc to a volume resize map from which PVCs are picked and resized
Index ¶
Types ¶
type ExpandController ¶
type ExpandController interface {
Run(stopCh <-chan struct{})
}
ExpandController expands the pvs
func NewExpandController ¶
func NewExpandController( kubeClient clientset.Interface, pvcInformer coreinformers.PersistentVolumeClaimInformer, pvInformer coreinformers.PersistentVolumeInformer, cloud cloudprovider.Interface, plugins []volume.VolumePlugin) (ExpandController, error)
type PVCPopulator ¶
type PVCPopulator interface {
Run(stopCh <-chan struct{})
}
PVCPopulator iterates through PVCs and checks if for bound PVCs their size doesn't match with Persistent Volume size
func NewPVCPopulator ¶
func NewPVCPopulator( loopPeriod time.Duration, resizeMap cache.VolumeResizeMap, pvcLister corelisters.PersistentVolumeClaimLister, pvLister corelisters.PersistentVolumeLister, volumePluginMgr *volume.VolumePluginMgr, kubeClient clientset.Interface) PVCPopulator
type SyncVolumeResize ¶
type SyncVolumeResize interface {
Run(stopCh <-chan struct{})
}
func NewSyncVolumeResize ¶
func NewSyncVolumeResize( loopPeriod time.Duration, opsExecutor operationexecutor.OperationExecutor, resizeMap cache.VolumeResizeMap, kubeClient clientset.Interface) SyncVolumeResize
NewSyncVolumeResize returns actual volume resize handler
Source Files ¶
expand_controller.go pvc_populator.go sync_volume_resize.go
Directories ¶
Path | Synopsis |
---|---|
pkg/controller/volume/expand/cache |
- Version
- v1.14.6
- Published
- Aug 16, 2019
- Platform
- js/wasm
- Imports
- 29 packages
- Last checked
- 1 minute ago –
Tools for package owners.