Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyEnvironmentToConfig(config *ControllerManagerConfiguration)
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ClientConnectionConfiguration
- type CloudProfileControllerConfiguration
- type ControllerManagerConfiguration
- type ControllerManagerControllerConfiguration
- type LeaderElectionConfiguration
- type MetricsConfiguration
- type QuotaControllerConfiguration
- type SecretBindingControllerConfiguration
- type SeedControllerConfiguration
- type ServerConfiguration
- type ShootCareControllerConfiguration
- type ShootControllerConfiguration
- type ShootMaintenanceControllerConfiguration
- type ShootQuotaControllerConfiguration
Constants ¶
const ( // ControllerManagerDefaultLockObjectNamespace is the default lock namespace for leader election. ControllerManagerDefaultLockObjectNamespace = "garden" // ControllerManagerDefaultLockObjectName is the default lock name for leader election. ControllerManagerDefaultLockObjectName = "gardener-controller-manager-leader-election" )
const GroupName = "componentconfig.sapcloud.io"
GroupName is the group name use in this package
Variables ¶
var ( // SchemeBuilder used to register the Shoot resource. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a pointer to SchemeBuilder.AddToScheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func ApplyEnvironmentToConfig ¶
func ApplyEnvironmentToConfig(config *ControllerManagerConfiguration)
ApplyEnvironmentToConfig checks for several well-defined environment variables and if they are set, it sets the value of the respective keys of <config> to the values in the environment. Currently implemented environment variables: KUBECONFIG can override config.ClientConnection.KubeConfigFile WATCH_NAMESPACE can override config.Controller.WatchNamespace and config.LeaderElection.LockObjectNamespace
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ClientConnectionConfiguration ¶
type ClientConnectionConfiguration struct { // KubeConfigFile is the path to a kubeconfig file. KubeConfigFile string // AcceptContentTypes defines the Accept header sent by clients when connecting to // a server, overriding the default value of 'application/json'. This field will // control all connections to the server used by a particular client. AcceptContentTypes string // ContentType is the content type used when sending data to the server from this // client. ContentType string // QPS controls the number of queries per second allowed for this connection. QPS float32 // Burst allows extra queries to accumulate when a client is exceeding its rate. Burst int32 }
ClientConnectionConfiguration contains details for constructing a client.
func (*ClientConnectionConfiguration) DeepCopy ¶
func (in *ClientConnectionConfiguration) DeepCopy() *ClientConnectionConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientConnectionConfiguration.
func (*ClientConnectionConfiguration) DeepCopyInto ¶
func (in *ClientConnectionConfiguration) DeepCopyInto(out *ClientConnectionConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudProfileControllerConfiguration ¶
type CloudProfileControllerConfiguration struct { // ConcurrentSyncs is the number of workers used for the controller to work on // events. ConcurrentSyncs int }
CloudProfileControllerConfiguration defines the configuration of the CloudProfile controller.
func (*CloudProfileControllerConfiguration) DeepCopy ¶
func (in *CloudProfileControllerConfiguration) DeepCopy() *CloudProfileControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudProfileControllerConfiguration.
func (*CloudProfileControllerConfiguration) DeepCopyInto ¶
func (in *CloudProfileControllerConfiguration) DeepCopyInto(out *CloudProfileControllerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerManagerConfiguration ¶
type ControllerManagerConfiguration struct { metav1.TypeMeta // ClientConnection specifies the kubeconfig file and client connection // settings for the proxy server to use when communicating with the apiserver. ClientConnection ClientConnectionConfiguration // GardenerClientConnection specifies the kubeconfig file and client connection // settings for the garden-apiserver. // +optional GardenerClientConnection *ClientConnectionConfiguration // Controllers defines the configuration of the controllers. Controllers ControllerManagerControllerConfiguration // LeaderElection defines the configuration of leader election client. LeaderElection LeaderElectionConfiguration // LogLevel is the level/severity for the logs. Must be one of [info,debug,error]. LogLevel string // Metrics defines the metrics configuration. Metrics MetricsConfiguration // Server defines the configuration of the HTTP server. Server ServerConfiguration }
ControllerManagerConfiguration defines the configuration for the Gardener controller manager.
func (*ControllerManagerConfiguration) DeepCopy ¶
func (in *ControllerManagerConfiguration) DeepCopy() *ControllerManagerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerManagerConfiguration.
func (*ControllerManagerConfiguration) DeepCopyInto ¶
func (in *ControllerManagerConfiguration) DeepCopyInto(out *ControllerManagerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ControllerManagerConfiguration) DeepCopyObject ¶
func (in *ControllerManagerConfiguration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ControllerManagerControllerConfiguration ¶
type ControllerManagerControllerConfiguration struct { // CloudProfile defines the configuration of the CloudProfile controller. // +optional CloudProfile *CloudProfileControllerConfiguration // SecretBinding defines the configuration of the SecretBinding controller. // +optional SecretBinding *SecretBindingControllerConfiguration // Quota defines the configuration of the Quota controller. // +optional Quota *QuotaControllerConfiguration // Seed defines the configuration of the Seed controller. // +optional Seed *SeedControllerConfiguration // Shoot defines the configuration of the Shoot controller. Shoot ShootControllerConfiguration // ShootCare defines the configuration of the ShootCare controller. ShootCare ShootCareControllerConfiguration // ShootMaintenance defines the configuration of the ShootMaintenance controller. ShootMaintenance ShootMaintenanceControllerConfiguration // ShootQuota defines the configuration of the ShootQuota controller. ShootQuota ShootQuotaControllerConfiguration }
ControllerManagerControllerConfiguration defines the configuration of the controllers.
func (*ControllerManagerControllerConfiguration) DeepCopy ¶
func (in *ControllerManagerControllerConfiguration) DeepCopy() *ControllerManagerControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerManagerControllerConfiguration.
func (*ControllerManagerControllerConfiguration) DeepCopyInto ¶
func (in *ControllerManagerControllerConfiguration) DeepCopyInto(out *ControllerManagerControllerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LeaderElectionConfiguration ¶
type LeaderElectionConfiguration struct { // LeaderElect enables a leader election client to gain leadership // before executing the main loop. Enable this when running replicated // components for high availability. LeaderElect bool // LeaseDuration is the duration that non-leader candidates will wait // after observing a leadership renewal until attempting to acquire // leadership of a led but unrenewed leader slot. This is effectively the // maximum duration that a leader can be stopped before it is replaced // by another candidate. This is only applicable if leader election is // enabled. LeaseDuration metav1.Duration // RenewDeadline is the interval between attempts by the acting master to // renew a leadership slot before it stops leading. This must be less // than or equal to the lease duration. This is only applicable if leader // election is enabled. RenewDeadline metav1.Duration // RetryPeriod is the duration the clients should wait between attempting // acquisition and renewal of a leadership. This is only applicable if // leader election is enabled. RetryPeriod metav1.Duration // ResourceLock indicates the resource object type that will be used to lock // during leader election cycles. ResourceLock string // LockObjectNamespace defines the namespace of the lock object. LockObjectNamespace string // LockObjectName defines the lock object name. LockObjectName string }
LeaderElectionConfiguration defines the configuration of leader election clients for components that can run with leader election enabled.
func (*LeaderElectionConfiguration) DeepCopy ¶
func (in *LeaderElectionConfiguration) DeepCopy() *LeaderElectionConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaderElectionConfiguration.
func (*LeaderElectionConfiguration) DeepCopyInto ¶
func (in *LeaderElectionConfiguration) DeepCopyInto(out *LeaderElectionConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetricsConfiguration ¶
type MetricsConfiguration struct { // The interval defines how frequently metrics get scraped. Interval metav1.Duration }
MetricsConfiguration contains options to configure the metrics.
func (*MetricsConfiguration) DeepCopy ¶
func (in *MetricsConfiguration) DeepCopy() *MetricsConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsConfiguration.
func (*MetricsConfiguration) DeepCopyInto ¶
func (in *MetricsConfiguration) DeepCopyInto(out *MetricsConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QuotaControllerConfiguration ¶
type QuotaControllerConfiguration struct { // ConcurrentSyncs is the number of workers used for the controller to work on // events. ConcurrentSyncs int }
QuotaControllerConfiguration defines the configuration of the Quota controller.
func (*QuotaControllerConfiguration) DeepCopy ¶
func (in *QuotaControllerConfiguration) DeepCopy() *QuotaControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaControllerConfiguration.
func (*QuotaControllerConfiguration) DeepCopyInto ¶
func (in *QuotaControllerConfiguration) DeepCopyInto(out *QuotaControllerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretBindingControllerConfiguration ¶
type SecretBindingControllerConfiguration struct { // ConcurrentSyncs is the number of workers used for the controller to work on // events. ConcurrentSyncs int }
SecretBindingControllerConfiguration defines the configuration of the SecretBinding controller.
func (*SecretBindingControllerConfiguration) DeepCopy ¶
func (in *SecretBindingControllerConfiguration) DeepCopy() *SecretBindingControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretBindingControllerConfiguration.
func (*SecretBindingControllerConfiguration) DeepCopyInto ¶
func (in *SecretBindingControllerConfiguration) DeepCopyInto(out *SecretBindingControllerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SeedControllerConfiguration ¶
type SeedControllerConfiguration struct { // ConcurrentSyncs is the number of workers used for the controller to work on // events. ConcurrentSyncs int }
SeedControllerConfiguration defines the configuration of the Seed controller.
func (*SeedControllerConfiguration) DeepCopy ¶
func (in *SeedControllerConfiguration) DeepCopy() *SeedControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SeedControllerConfiguration.
func (*SeedControllerConfiguration) DeepCopyInto ¶
func (in *SeedControllerConfiguration) DeepCopyInto(out *SeedControllerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServerConfiguration ¶
type ServerConfiguration struct { // BindAddress is the IP address on which to listen for the specified port. BindAddress string // Port is the port on which to serve unsecured, unauthenticated access. Port int }
ServerConfiguration contains details for the HTTP server.
func (*ServerConfiguration) DeepCopy ¶
func (in *ServerConfiguration) DeepCopy() *ServerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerConfiguration.
func (*ServerConfiguration) DeepCopyInto ¶
func (in *ServerConfiguration) DeepCopyInto(out *ServerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ShootCareControllerConfiguration ¶
type ShootCareControllerConfiguration struct { // ConcurrentSyncs is the number of workers used for the controller to work on // events. ConcurrentSyncs int // SyncPeriod is the duration how often the existing resources are reconciled (how // often the health check of Shoot clusters is performed (only if no operation is // already running on them). SyncPeriod metav1.Duration }
ShootCareControllerConfiguration defines the configuration of the ShootCare controller.
func (*ShootCareControllerConfiguration) DeepCopy ¶
func (in *ShootCareControllerConfiguration) DeepCopy() *ShootCareControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShootCareControllerConfiguration.
func (*ShootCareControllerConfiguration) DeepCopyInto ¶
func (in *ShootCareControllerConfiguration) DeepCopyInto(out *ShootCareControllerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ShootControllerConfiguration ¶
type ShootControllerConfiguration struct { // ConcurrentSyncs is the number of workers used for the controller to work on // events. ConcurrentSyncs int // RespectSyncPeriodOverwrite determines whether a sync period overwrite of a // Shoot (via annotation) is respected or not. Defaults to false. // +optional RespectSyncPeriodOverwrite *bool // RetryDuration is the maximum duration how often a reconciliation will be retried // in case of errors. RetryDuration metav1.Duration // RetrySyncPeriod is the duration how fast Shoots with an errornous operation are // readded to the queue so that the operation can be retried. Defaults to 15s. // +optional RetrySyncPeriod *metav1.Duration // SyncPeriod is the duration how often the existing resources are reconciled. SyncPeriod metav1.Duration // WatchNamespace defines the namespace which should be watched by the controller. // +optional WatchNamespace *string }
ShootControllerConfiguration defines the configuration of the CloudProfile controller.
func (*ShootControllerConfiguration) DeepCopy ¶
func (in *ShootControllerConfiguration) DeepCopy() *ShootControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShootControllerConfiguration.
func (*ShootControllerConfiguration) DeepCopyInto ¶
func (in *ShootControllerConfiguration) DeepCopyInto(out *ShootControllerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ShootMaintenanceControllerConfiguration ¶
type ShootMaintenanceControllerConfiguration struct { // ConcurrentSyncs is the number of workers used for the controller to work on // events. ConcurrentSyncs int // SyncPeriod is the duration how often the existing resources are reconciled (how // often it is checked whether Shoot resources need maintenance). SyncPeriod metav1.Duration }
ShootMaintenanceControllerConfiguration defines the configuration of the ShootMaintenance controller.
func (*ShootMaintenanceControllerConfiguration) DeepCopy ¶
func (in *ShootMaintenanceControllerConfiguration) DeepCopy() *ShootMaintenanceControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShootMaintenanceControllerConfiguration.
func (*ShootMaintenanceControllerConfiguration) DeepCopyInto ¶
func (in *ShootMaintenanceControllerConfiguration) DeepCopyInto(out *ShootMaintenanceControllerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ShootQuotaControllerConfiguration ¶
type ShootQuotaControllerConfiguration struct { // ConcurrentSyncs is the number of workers used for the controller to work on // events. ConcurrentSyncs int // SyncPeriod is the duration how often the existing resources are reconciled // (how often Shoots referenced Quota is checked). SyncPeriod metav1.Duration }
ShootQuotaControllerConfiguration defines the configuration of the ShootQuota controller.
func (*ShootQuotaControllerConfiguration) DeepCopy ¶
func (in *ShootQuotaControllerConfiguration) DeepCopy() *ShootQuotaControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShootQuotaControllerConfiguration.
func (*ShootQuotaControllerConfiguration) DeepCopyInto ¶
func (in *ShootQuotaControllerConfiguration) DeepCopyInto(out *ShootQuotaControllerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.