options

package
v0.0.0-...-35c3564 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

Types

type ControllerManagerOptions

type ControllerManagerOptions struct {
	Generic *cmoptions.GenericControllerManagerConfigurationOptions

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

	Master                 string
	Kubeconfig             string
	ClusterpediaKubeconfig string
}

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

func NewControllerManagerOptions

func NewControllerManagerOptions() (*ControllerManagerOptions, error)

NewControllerManagerOptions creates a new ControllerManagerOptions with a default config.

func (*ControllerManagerOptions) ApplyTo

ApplyTo fills up controller manager config with options.

func (ControllerManagerOptions) Config

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

Config return a controller manager config objective

func (*ControllerManagerOptions) Flags

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

Flags returns flags for a specific APIServer by section name

func (*ControllerManagerOptions) Validate

func (s *ControllerManagerOptions) 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