Documentation ¶
Overview ¶
Package controller provides Kubernetes controller configuration structures used for command execution
Package controller provides Kubernetes controller configuration structures used for command execution ¶
Package controller provides Kubernetes controller configuration structures used for command execution ¶
Package controller provides Kubernetes controller configuration structures used for command execution
Index ¶
- func NewControllerManagerCommand(ctx context.Context) *cobra.Command
- type Config
- func (c *Config) Apply(cfg *config.ControllerConfiguration)
- func (c *Config) ApplyETCDStorage(etcdStorage *config.ETCDStorage)
- func (c *Config) ApplyGardenId(gardenId *string)
- func (c *Config) ApplyHealthCheckConfig(config *extensionconfig.HealthCheckConfig)
- func (c *Config) ApplyHealthProbeBindAddress(healthProbeBindAddress *string)
- func (c *Config) ApplyMetricsBindAddress(metricsBindAddress *string)
- func (c *Config) Options() config.ControllerConfiguration
- type ConfigOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
PARAMETERS cfg *config.ControllerConfiguration Pointer to the configuration to set
func (*Config) ApplyETCDStorage ¶
func (c *Config) ApplyETCDStorage(etcdStorage *config.ETCDStorage)
ApplyETCDStorage sets the given etcd storage configuration to that of this Config.
PARAMETERS etcdStorage *config.ETCDStorage Pointer to the etcd storage configuration to set
func (*Config) ApplyGardenId ¶
ApplyGardenId sets the gardenId.
PARAMETERS gardenId *string Pointer to the gardenId to set
func (*Config) ApplyHealthCheckConfig ¶
func (c *Config) ApplyHealthCheckConfig(config *extensionconfig.HealthCheckConfig)
ApplyHealthCheckConfig applies the HealthCheckConfig to the config
PARAMETERS config *healthcheckconfig.HealthCheckConfig Pointer to the HealthCheckConfig to set
func (*Config) ApplyHealthProbeBindAddress ¶
ApplyHealthProbeBindAddress sets the healthProbeBindAddress.
PARAMETERS healthProbeBindAddress *string Pointer to the healthProbeBindAddress to set
func (*Config) ApplyMetricsBindAddress ¶
ApplyMetricsBindAddress sets the metricsBindAddress.
PARAMETERS metricsBindAddress *string Pointer to the metricsBindAddress to set
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 { // Kubeconfig is the path to a kubeconfig. 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.
PARAMETERS fs *pflag.FlagSet Flags to recognize
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.