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 ¶
func (o *LeaderMigrationOptions) ApplyTo(cfg *config.GenericControllerManagerConfiguration) error
ApplyTo applies the options of leader migration to generic configuration.
Click to show internal directories.
Click to hide internal directories.