Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InfraConfigPathFlag is the name of the command line flag to specify the path to the infrastructure configuration file.
	InfraConfigPathFlag = "infrastructure-config"
)
View Source
const (
	// NamespaceFlag is the name of the command line flag to specify the namespace to watch objects in.
	NamespaceFlag = "namespace"
)

Variables

This section is empty.

Functions

func ControllerSwitchOptions

func ControllerSwitchOptions() *controllercmd.SwitchOptions

ControllerSwitchOptions are the controllercmd.SwitchOptions for the manager controllers.

func TargetControllerSwitchOptions

func TargetControllerSwitchOptions() *controllercmd.SwitchOptions

TargetControllerSwitchOptions are the controllercmd.SwitchOptions for the target cluster manager controllers.

Types

type Config

type Config struct {
	// Config is the controller configuration.
	Config *config.ControllerConfiguration
}

Config is a completed controller configuration.

func (*Config) Apply

func (c *Config) Apply(cfg *config.ControllerConfiguration)

Apply sets the values of this Config in the given config.ControllerConfiguration.

func (*Config) ApplyAzureFailedVMRemedy

func (c *Config) ApplyAzureFailedVMRemedy(cfg *config.AzureFailedVMRemedyConfiguration)

ApplyAzureFailedVMRemedy sets the given Azure failed VM remedy configuration to that of this Config.

func (*Config) ApplyAzureOrphanedPublicIPRemedy

func (c *Config) ApplyAzureOrphanedPublicIPRemedy(cfg *config.AzureOrphanedPublicIPRemedyConfiguration)

ApplyAzureOrphanedPublicIPRemedy sets the given Azure orphaned public IP remedy configuration to that of this Config.

func (*Config) Options

func (c *Config) Options() config.ControllerConfiguration

Options initializes empty config.ControllerConfiguration, applies the set values and returns it.

type ConfigOptions

type ConfigOptions struct {
	// ConfigFilePath is the path to a config file.
	ConfigFilePath string
	// contains filtered or unexported fields
}

ConfigOptions are command line options that can be set for config.ControllerConfiguration.

func (*ConfigOptions) AddFlags

func (c *ConfigOptions) AddFlags(fs *pflag.FlagSet)

AddFlags implements Flagger.AddFlags.

func (*ConfigOptions) Complete

func (c *ConfigOptions) Complete() error

Complete implements RESTCompleter.Complete.

func (*ConfigOptions) Completed

func (c *ConfigOptions) Completed() *Config

Completed returns the completed Config. Only call this if `Complete` was successful.

type ManagerConfig

type ManagerConfig struct {
	controllercmd.ManagerConfig
	// Namespace is the namespace to watch objects in.
	// If not specified, defaults to all namespaces.
	Namespace string
}

ManagerConfig is a completed manager configuration.

func (*ManagerConfig) Apply

func (c *ManagerConfig) Apply(opts *manager.Options)

Apply sets the values of this ManagerConfig in the given manager.Options.

func (*ManagerConfig) Options

func (c *ManagerConfig) Options() manager.Options

Options initializes empty manager.Options, applies the set values and returns it.

type ManagerOptions

type ManagerOptions struct {
	controllercmd.ManagerOptions
	// Namespace is the namespace to watch objects in.
	// If not specified, defaults to all namespaces.
	Namespace string
	// contains filtered or unexported fields
}

ManagerOptions are command line options that can be set for manager.Options.

func (*ManagerOptions) AddFlags

func (m *ManagerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags implements Flagger.AddFlags.

func (*ManagerOptions) Complete

func (m *ManagerOptions) Complete() error

Complete implements Completer.Complete.

func (*ManagerOptions) Completed

func (m *ManagerOptions) Completed() *ManagerConfig

Completed returns the completed ManagerConfig. Only call this if `Complete` was successful.

type ReconcilerConfig

type ReconcilerConfig struct {
	// InfraConfigPath is the path to the infrastructure configuration file.
	InfraConfigPath string
}

ReconcilerConfig is a completed controller configuration.

func (*ReconcilerConfig) Apply

func (c *ReconcilerConfig) Apply(path *string)

Apply sets the values of this ReconcilerConfig in the given parameters.

type ReconcilerOptions

type ReconcilerOptions struct {
	// InfraConfigPath is the path to the infrastructure configuration file.
	InfraConfigPath string
	// contains filtered or unexported fields
}

ReconcilerOptions are command line options that can be set for controller.Options.

func (*ReconcilerOptions) AddFlags

func (c *ReconcilerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags implements Flagger.AddFlags.

func (*ReconcilerOptions) Complete

func (c *ReconcilerOptions) Complete() error

Complete implements Completer.Complete.

func (*ReconcilerOptions) Completed

func (c *ReconcilerOptions) Completed() *ReconcilerConfig

Completed returns the completed ReconcilerConfig. Only call this if `Complete` was successful.

Jump to

Keyboard shortcuts

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