options

package
v0.31.0-alpha.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeaderMigrationOptions

type LeaderMigrationOptions struct {
	// Enabled indicates whether leader migration is enabled through the --enabled-leader-migration flag.
	Enabled bool

	// ControllerMigrationConfig is the path to the file of LeaderMigrationConfiguration type.
	// It can be set with --leader-migration-config flag
	// If the path is "" (default vaule), the default vaule will be used.
	ControllerMigrationConfig string
}

LeaderMigrationOptions is the set of options for Leader Migration, which is given to the controller manager through flags

func DefaultLeaderMigrationOptions

func DefaultLeaderMigrationOptions() *LeaderMigrationOptions

DefaultLeaderMigrationOptions returns a LeaderMigrationOptions with default values.

func (*LeaderMigrationOptions) AddFlags

func (o *LeaderMigrationOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds all flags related to leader migration to given flag set.

func (*LeaderMigrationOptions) ApplyTo

ApplyTo applies the options of leader migration to generic configuration.

Jump to

Keyboard shortcuts

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