csioptions

package
v1.27.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CrossNamespaceVolumeDataSource = "CrossNamespaceVolumeDataSource"
)

Variables

This section is empty.

Functions

func GetFssAddress added in v1.24.1

func GetFssAddress(csiAddress, defaultAddress string) string

GetFssAddress returns the fssAddress based on csiAddress

func GetFssVolumeNamePrefix added in v1.24.1

func GetFssVolumeNamePrefix(csiVolumeNamePrefix string) string

GetFssVolumeNamePrefix returns the fssVolumeNamePrefix based on csiVolumeNamePrefix

func UpdateFeatureGates added in v1.26.0

func UpdateFeatureGates(featureGate map[string]bool) map[string]bool

UpdateFeatureGates add CrossNamespaceVolumeDataSource (default value false) to featureGate if not present

Types

type CSIOptions

type CSIOptions struct {
	Master                  string
	Kubeconfig              string
	CsiAddress              string
	Endpoint                string
	FssCsiAddress           string
	FssEndpoint             string
	VolumeNamePrefix        string
	FssVolumeNamePrefix     string
	VolumeNameUUIDLength    int
	ShowVersion             bool
	RetryIntervalStart      time.Duration
	RetryIntervalMax        time.Duration
	WorkerThreads           uint
	OperationTimeout        time.Duration
	EnableLeaderElection    bool
	LeaderElectionType      string
	LeaderElectionNamespace string
	StrictTopology          bool
	Resync                  time.Duration
	Timeout                 time.Duration
	FeatureGates            map[string]bool
	FinalizerThreads        uint
	MetricsAddress          string
	MetricsPath             string
	ExtraCreateMetadata     bool
	ReconcileSync           time.Duration
	EnableResizer           bool
}

CSIOptions structure which contains flag values

func NewCSIOptions

func NewCSIOptions() *CSIOptions

NewCSIOptions initializes the flag

Jump to

Keyboard shortcuts

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