package options
import "k8s.io/kubernetes/pkg/controller/volume/persistentvolume/options"
Index ¶
- type PersistentVolumeControllerOptions
- func NewPersistentVolumeControllerOptions() PersistentVolumeControllerOptions
- func (o *PersistentVolumeControllerOptions) AddFlags(fs *pflag.FlagSet)
- type VolumeConfigFlags
Types ¶
type PersistentVolumeControllerOptions ¶
type PersistentVolumeControllerOptions struct { PVClaimBinderSyncPeriod time.Duration VolumeConfigFlags VolumeConfigFlags }
PersistentVolumeControllerOptions holds the PersistentVolumeController options.
func NewPersistentVolumeControllerOptions ¶
func NewPersistentVolumeControllerOptions() PersistentVolumeControllerOptions
NewPersistentVolumeControllerOptions creates a new PersistentVolumeControllerOptions with default values.
func (*PersistentVolumeControllerOptions) AddFlags ¶
func (o *PersistentVolumeControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to PersistentVolumeControllerOptions to the specified FlagSet.
type VolumeConfigFlags ¶
type VolumeConfigFlags struct { PersistentVolumeRecyclerMaximumRetry int PersistentVolumeRecyclerMinimumTimeoutNFS int PersistentVolumeRecyclerPodTemplateFilePathNFS string PersistentVolumeRecyclerIncrementTimeoutNFS int PersistentVolumeRecyclerPodTemplateFilePathHostPath string PersistentVolumeRecyclerMinimumTimeoutHostPath int PersistentVolumeRecyclerIncrementTimeoutHostPath int EnableHostPathProvisioning bool EnableDynamicProvisioning bool }
VolumeConfigFlags is used to bind CLI flags to variables. This top-level struct contains *all* enumerated CLI flags meant to configure all volume plugins. From this config, the binary will create many instances of volume.VolumeConfig which are then passed to the appropriate plugin. The ControllerManager binary is the only part of the code which knows what plugins are supported and which CLI flags correspond to each plugin.
Source Files ¶
options.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 3 hours ago –
Tools for package owners.