cmd

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProviderClientQPSFlag is the name of the command line flag to specify the client QPS for provider operations.
	ProviderClientQPSFlag = "provider-client-qps"
	// ProviderClientBurstFlag is the name of the command line flag to specify the client burst for provider operations.
	ProviderClientBurstFlag = "provider-client-burst"
	// ProviderClientWaitTimeoutFlag is the name of the command line flag to specify the client wait timeout for provider operations.
	ProviderClientWaitTimeoutFlag = "provider-client-wait-timeout"
)

Variables

This section is empty.

Functions

func ControllerSwitchOptions

func ControllerSwitchOptions() *controllercmd.SwitchOptions

ControllerSwitchOptions are the controllercmd.SwitchOptions for the provider controllers.

func WebhookSwitchOptions

func WebhookSwitchOptions(gardenerVersion *string) *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) ApplyCSI added in v1.30.0

func (c *Config) ApplyCSI(csi *config.CSI)

ApplyCSI applies the ApplyCSI to the config

func (*Config) ApplyETCDBackup

func (c *Config) ApplyETCDBackup(etcdBackup *config.ETCDBackup)

ApplyETCDBackup sets the given etcd backup configuration to that of this Config.

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(config *healthcheckconfig.HealthCheckConfig)

ApplyHealthCheckConfig applies the HealthCheckConfig to the config

func (*Config) ApplyMachineImageOwnerSecretRef

func (c *Config) ApplyMachineImageOwnerSecretRef(secretRef **corev1.SecretReference)

ApplyMachineImageOwnerSecretRef sets the given machine image owener secret reference to those of this Config.

func (*Config) ApplyService added in v1.18.1

func (c *Config) ApplyService(service *config.Service)

ApplyService sets the given service configuration to that of this Config.

func (*Config) ApplyToBeSharedImageIDs added in v1.29.0

func (c *Config) ApplyToBeSharedImageIDs(toBeSharedImageIDs *[]string)

ApplyToBeSharedImageIDs sets toBeSharedImageIDs image IDs to those 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 {
	// 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.

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 DNSRecordControllerConfig added in v1.32.0

type DNSRecordControllerConfig struct {
	controllercmd.ControllerConfig
	ProviderClientQPS         rate.Limit
	ProviderClientBurst       int
	ProviderClientWaitTimeout time.Duration
}

DNSRecordControllerConfig is a completed DNSRecord controller configuration.

func (*DNSRecordControllerConfig) Apply added in v1.32.0

Apply sets the values of this DNSRecordControllerConfig in the given controller.Options.

func (*DNSRecordControllerConfig) ApplyRateLimiter added in v1.32.0

ApplyRateLimiter sets the values of this DNSRecordControllerConfig in the given dnsrecordcontroller.RateLimiterOptions.

func (*DNSRecordControllerConfig) Options added in v1.32.0

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

func (*DNSRecordControllerConfig) RateLimiterOptions added in v1.32.0

RateLimiterOptions initializes empty dnsrecordcontroller.RateLimiterOptions, applies the set values and returns it.

type DNSRecordControllerOptions added in v1.32.0

type DNSRecordControllerOptions struct {
	controllercmd.ControllerOptions
	ProviderClientQPS         float64
	ProviderClientBurst       int
	ProviderClientWaitTimeout time.Duration
	// contains filtered or unexported fields
}

DNSRecordControllerOptions are command line options that can be set for dnsrecordcontroller.Options.

func (*DNSRecordControllerOptions) AddFlags added in v1.32.0

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

AddFlags implements Flagger.AddFlags.

func (*DNSRecordControllerOptions) Complete added in v1.32.0

func (c *DNSRecordControllerOptions) Complete() error

Complete implements Completer.Complete.

func (*DNSRecordControllerOptions) Completed added in v1.32.0

Completed returns the completed DNSRecordControllerConfig. 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