options

package
v0.0.0-...-0f541f5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FireflyKarmadaManagerUserAgent is the userAgent name when starting firefly-controller managers.
	FireflyKarmadaManagerUserAgent = "firefly-karmada-manager"
)

Variables

This section is empty.

Functions

Types

type FireflyControllerManagerOptions

type FireflyControllerManagerOptions struct {
	Generic *cmoptions.GenericControllerManagerConfigurationOptions

	SecureServing  *apiserveroptions.SecureServingOptionsWithLoopback
	Authentication *apiserveroptions.DelegatingAuthenticationOptions
	Authorization  *apiserveroptions.DelegatingAuthorizationOptions
	Metrics        *metrics.Options
	Logs           *logs.Options

	KarmadaMaster      string
	KarmadaKubeconfig  string
	FireflyKubeconfig  string
	EstimatorNamespace string
	KarmadaName        string
}

FireflyControllerManagerOptions is the main context object for the firefly-controller-manager.

func NewFireflyControllerManagerOptions

func NewFireflyControllerManagerOptions() (*FireflyControllerManagerOptions, error)

NewFireflyControllerManagerOptions creates a new FireflyControllerManagerOptions with a default config.

func (*FireflyControllerManagerOptions) ApplyTo

ApplyTo fills up controller manager config with options.

func (FireflyControllerManagerOptions) Config

func (s FireflyControllerManagerOptions) Config(allControllers []string, disabledByDefaultControllers []string) (*fireflycontrollerconfig.Config, error)

Config return a controller manager config objective

func (*FireflyControllerManagerOptions) Flags

func (s *FireflyControllerManagerOptions) Flags(allControllers []string, disabledByDefaultControllers []string) cliflag.NamedFlagSets

Flags returns flags for a specific APIServer by section name

func (*FireflyControllerManagerOptions) Validate

func (s *FireflyControllerManagerOptions) Validate(allControllers []string, disabledByDefaultControllers []string) error

Validate is used to validate the options and config before launching the controller manager

Jump to

Keyboard shortcuts

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