controller-managerk8s.io/controller-manager/pkg/leadermigration/options Index | Files

package options

import "k8s.io/controller-manager/pkg/leadermigration/options"

Index

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.

Source Files

options.go

Version
v0.32.2 (latest)
Published
Feb 13, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
2 months ago

Tools for package owners.