Documentation
¶
Index ¶
- Variables
- func ControllerSwitchOptions() *controllercmd.SwitchOptions
- func WebhookSwitchOptions() *webhookcmd.SwitchOptions
- type Config
- func (c *Config) Apply(cfg *config.ControllerConfiguration)
- func (c *Config) ApplyCustomLabelDomain(customLabelDomain *string)
- func (c *Config) ApplyDeployALBIngressController(deployALBIngressController *bool)
- func (c *Config) ApplyETCDStorage(etcdStorage *config.ETCDStorage)
- func (c *Config) ApplyHealthCheckConfig(cfg *healthcheckconfig.HealthCheckConfig)
- func (c *Config) ApplyRegistryCaches(regCaches *[]config.RegistryCacheConfiguration)
- func (c *Config) Options() config.ControllerConfiguration
- type ConfigOptions
Constants ¶
This section is empty.
Variables ¶
var ErrConfigFilePathNotSet = errors.New("config file path not set")
Functions ¶
func ControllerSwitchOptions ¶
func ControllerSwitchOptions() *controllercmd.SwitchOptions
ControllerSwitchOptions are the controllercmd.SwitchOptions for the provider controllers.
func WebhookSwitchOptions ¶
func WebhookSwitchOptions() *webhookcmd.SwitchOptions
WebhookSwitchOptions are the webhookcmd.SwitchOptions for the provider webhooks.
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) ApplyCustomLabelDomain ¶
ApplyCustomLabelDomain sets the custom label domain configuration for infrastructure resources.
func (*Config) ApplyDeployALBIngressController ¶
func (*Config) ApplyETCDStorage ¶
func (c *Config) ApplyETCDStorage(etcdStorage *config.ETCDStorage)
ApplyETCDStorage sets the given etcd storage configuration to that of this Config.
func (*Config) ApplyHealthCheckConfig ¶
func (c *Config) ApplyHealthCheckConfig(cfg *healthcheckconfig.HealthCheckConfig)
ApplyHealthCheckConfig applies the HealthCheckConfig to the config
func (*Config) ApplyRegistryCaches ¶
func (c *Config) ApplyRegistryCaches(regCaches *[]config.RegistryCacheConfiguration)
ApplyRegistryCaches sets the given Registry Cache configurations.
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 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.