Documentation
¶
Index ¶
- Constants
- Variables
- func Convert_config_BackupBucketSchedulerConfiguration_To_v1alpha1_BackupBucketSchedulerConfiguration(in *config.BackupBucketSchedulerConfiguration, ...) error
- func Convert_config_DiscoveryConfiguration_To_v1alpha1_DiscoveryConfiguration(in *config.DiscoveryConfiguration, out *DiscoveryConfiguration, ...) error
- func Convert_config_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in *config.LeaderElectionConfiguration, out *LeaderElectionConfiguration, ...) error
- func Convert_config_SchedulerConfiguration_To_v1alpha1_SchedulerConfiguration(in *config.SchedulerConfiguration, out *SchedulerConfiguration, ...) error
- func Convert_config_SchedulerControllerConfiguration_To_v1alpha1_SchedulerControllerConfiguration(in *config.SchedulerControllerConfiguration, ...) error
- func Convert_config_ServerConfiguration_To_v1alpha1_ServerConfiguration(in *config.ServerConfiguration, out *ServerConfiguration, s conversion.Scope) error
- func Convert_config_Server_To_v1alpha1_Server(in *config.Server, out *Server, s conversion.Scope) error
- func Convert_config_ShootSchedulerConfiguration_To_v1alpha1_ShootSchedulerConfiguration(in *config.ShootSchedulerConfiguration, out *ShootSchedulerConfiguration, ...) error
- func Convert_v1alpha1_BackupBucketSchedulerConfiguration_To_config_BackupBucketSchedulerConfiguration(in *BackupBucketSchedulerConfiguration, ...) error
- func Convert_v1alpha1_DiscoveryConfiguration_To_config_DiscoveryConfiguration(in *DiscoveryConfiguration, out *config.DiscoveryConfiguration, ...) error
- func Convert_v1alpha1_LeaderElectionConfiguration_To_config_LeaderElectionConfiguration(in *LeaderElectionConfiguration, out *config.LeaderElectionConfiguration, ...) error
- func Convert_v1alpha1_SchedulerConfiguration_To_config_SchedulerConfiguration(in *SchedulerConfiguration, out *config.SchedulerConfiguration, ...) error
- func Convert_v1alpha1_SchedulerControllerConfiguration_To_config_SchedulerControllerConfiguration(in *SchedulerControllerConfiguration, ...) error
- func Convert_v1alpha1_ServerConfiguration_To_config_ServerConfiguration(in *ServerConfiguration, out *config.ServerConfiguration, s conversion.Scope) error
- func Convert_v1alpha1_Server_To_config_Server(in *Server, out *config.Server, s conversion.Scope) error
- func Convert_v1alpha1_ShootSchedulerConfiguration_To_config_ShootSchedulerConfiguration(in *ShootSchedulerConfiguration, out *config.ShootSchedulerConfiguration, ...) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_ClientConnection(obj *componentbaseconfigv1alpha1.ClientConnectionConfiguration)
- func SetDefaults_LeaderElectionConfiguration(obj *LeaderElectionConfiguration)
- func SetDefaults_SchedulerConfiguration(obj *SchedulerConfiguration)
- func SetObjectDefaults_SchedulerConfiguration(in *SchedulerConfiguration)
- type BackupBucketSchedulerConfiguration
- type CandidateDeterminationStrategy
- type DiscoveryConfiguration
- type LeaderElectionConfiguration
- type SchedulerConfiguration
- type SchedulerControllerConfiguration
- type Server
- type ServerConfiguration
- type ShootSchedulerConfiguration
Constants ¶
const ( // SameRegion Strategy determines a seed candidate for a shoot only if the cloud profile and region are identical SameRegion CandidateDeterminationStrategy = "SameRegion" // MinimalDistance Strategy determines a seed candidate for a shoot if the cloud profile are identical. Then chooses the seed with the minimal distance to the shoot. MinimalDistance CandidateDeterminationStrategy = "MinimalDistance" // Default Strategy is the default strategy to use when there is no configuration provided Default CandidateDeterminationStrategy = SameRegion // SchedulerDefaultLockObjectNamespace is the default lock namespace for leader election. SchedulerDefaultLockObjectNamespace = "garden" // SchedulerDefaultLockObjectName is the default lock name for leader election. SchedulerDefaultLockObjectName = "gardener-scheduler-leader-election" // SchedulerDefaultConfigurationConfigMapNamespace is the namespace of the scheduler configuration config map SchedulerDefaultConfigurationConfigMapNamespace = "garden" // SchedulerDefaultConfigurationConfigMapName is the name of the scheduler configuration config map SchedulerDefaultConfigurationConfigMapName = "gardener-scheduler-configmap" // DefaultDiscoveryTTL is the default ttl for the cached discovery client. DefaultDiscoveryTTL = 10 * time.Second )
const GroupName = "scheduler.config.gardener.cloud"
GroupName is the group name use in this package
Variables ¶
var ( // DefaultDiscoveryDir is the directory where the discovery and http cache directory reside. DefaultDiscoveryDir string // DefaultDiscoveryCacheDir is the default discovery cache directory. DefaultDiscoveryCacheDir string // DefaultDiscoveryHTTPCacheDir is the default discovery http cache directory. DefaultDiscoveryHTTPCacheDir string )
var ( // SchemeBuilder used to register the SchedulerConfiguration resource. SchemeBuilder runtime.SchemeBuilder // AddToScheme is a pointer to SchemeBuilder.AddToScheme. AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
var Strategies = []CandidateDeterminationStrategy{SameRegion, MinimalDistance}
Strategies defines all currently implemented SeedCandidateDeterminationStrategies
Functions ¶
func Convert_config_BackupBucketSchedulerConfiguration_To_v1alpha1_BackupBucketSchedulerConfiguration ¶
func Convert_config_BackupBucketSchedulerConfiguration_To_v1alpha1_BackupBucketSchedulerConfiguration(in *config.BackupBucketSchedulerConfiguration, out *BackupBucketSchedulerConfiguration, s conversion.Scope) error
Convert_config_BackupBucketSchedulerConfiguration_To_v1alpha1_BackupBucketSchedulerConfiguration is an autogenerated conversion function.
func Convert_config_DiscoveryConfiguration_To_v1alpha1_DiscoveryConfiguration ¶
func Convert_config_DiscoveryConfiguration_To_v1alpha1_DiscoveryConfiguration(in *config.DiscoveryConfiguration, out *DiscoveryConfiguration, s conversion.Scope) error
Convert_config_DiscoveryConfiguration_To_v1alpha1_DiscoveryConfiguration is an autogenerated conversion function.
func Convert_config_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration ¶
func Convert_config_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in *config.LeaderElectionConfiguration, out *LeaderElectionConfiguration, s conversion.Scope) error
Convert_config_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration is an autogenerated conversion function.
func Convert_config_SchedulerConfiguration_To_v1alpha1_SchedulerConfiguration ¶
func Convert_config_SchedulerConfiguration_To_v1alpha1_SchedulerConfiguration(in *config.SchedulerConfiguration, out *SchedulerConfiguration, s conversion.Scope) error
Convert_config_SchedulerConfiguration_To_v1alpha1_SchedulerConfiguration is an autogenerated conversion function.
func Convert_config_SchedulerControllerConfiguration_To_v1alpha1_SchedulerControllerConfiguration ¶
func Convert_config_SchedulerControllerConfiguration_To_v1alpha1_SchedulerControllerConfiguration(in *config.SchedulerControllerConfiguration, out *SchedulerControllerConfiguration, s conversion.Scope) error
Convert_config_SchedulerControllerConfiguration_To_v1alpha1_SchedulerControllerConfiguration is an autogenerated conversion function.
func Convert_config_ServerConfiguration_To_v1alpha1_ServerConfiguration ¶
func Convert_config_ServerConfiguration_To_v1alpha1_ServerConfiguration(in *config.ServerConfiguration, out *ServerConfiguration, s conversion.Scope) error
Convert_config_ServerConfiguration_To_v1alpha1_ServerConfiguration is an autogenerated conversion function.
func Convert_config_Server_To_v1alpha1_Server ¶
func Convert_config_Server_To_v1alpha1_Server(in *config.Server, out *Server, s conversion.Scope) error
Convert_config_Server_To_v1alpha1_Server is an autogenerated conversion function.
func Convert_config_ShootSchedulerConfiguration_To_v1alpha1_ShootSchedulerConfiguration ¶
func Convert_config_ShootSchedulerConfiguration_To_v1alpha1_ShootSchedulerConfiguration(in *config.ShootSchedulerConfiguration, out *ShootSchedulerConfiguration, s conversion.Scope) error
Convert_config_ShootSchedulerConfiguration_To_v1alpha1_ShootSchedulerConfiguration is an autogenerated conversion function.
func Convert_v1alpha1_BackupBucketSchedulerConfiguration_To_config_BackupBucketSchedulerConfiguration ¶
func Convert_v1alpha1_BackupBucketSchedulerConfiguration_To_config_BackupBucketSchedulerConfiguration(in *BackupBucketSchedulerConfiguration, out *config.BackupBucketSchedulerConfiguration, s conversion.Scope) error
Convert_v1alpha1_BackupBucketSchedulerConfiguration_To_config_BackupBucketSchedulerConfiguration is an autogenerated conversion function.
func Convert_v1alpha1_DiscoveryConfiguration_To_config_DiscoveryConfiguration ¶
func Convert_v1alpha1_DiscoveryConfiguration_To_config_DiscoveryConfiguration(in *DiscoveryConfiguration, out *config.DiscoveryConfiguration, s conversion.Scope) error
Convert_v1alpha1_DiscoveryConfiguration_To_config_DiscoveryConfiguration is an autogenerated conversion function.
func Convert_v1alpha1_LeaderElectionConfiguration_To_config_LeaderElectionConfiguration ¶
func Convert_v1alpha1_LeaderElectionConfiguration_To_config_LeaderElectionConfiguration(in *LeaderElectionConfiguration, out *config.LeaderElectionConfiguration, s conversion.Scope) error
Convert_v1alpha1_LeaderElectionConfiguration_To_config_LeaderElectionConfiguration is an autogenerated conversion function.
func Convert_v1alpha1_SchedulerConfiguration_To_config_SchedulerConfiguration ¶
func Convert_v1alpha1_SchedulerConfiguration_To_config_SchedulerConfiguration(in *SchedulerConfiguration, out *config.SchedulerConfiguration, s conversion.Scope) error
Convert_v1alpha1_SchedulerConfiguration_To_config_SchedulerConfiguration is an autogenerated conversion function.
func Convert_v1alpha1_SchedulerControllerConfiguration_To_config_SchedulerControllerConfiguration ¶
func Convert_v1alpha1_SchedulerControllerConfiguration_To_config_SchedulerControllerConfiguration(in *SchedulerControllerConfiguration, out *config.SchedulerControllerConfiguration, s conversion.Scope) error
Convert_v1alpha1_SchedulerControllerConfiguration_To_config_SchedulerControllerConfiguration is an autogenerated conversion function.
func Convert_v1alpha1_ServerConfiguration_To_config_ServerConfiguration ¶
func Convert_v1alpha1_ServerConfiguration_To_config_ServerConfiguration(in *ServerConfiguration, out *config.ServerConfiguration, s conversion.Scope) error
Convert_v1alpha1_ServerConfiguration_To_config_ServerConfiguration is an autogenerated conversion function.
func Convert_v1alpha1_Server_To_config_Server ¶
func Convert_v1alpha1_Server_To_config_Server(in *Server, out *config.Server, s conversion.Scope) error
Convert_v1alpha1_Server_To_config_Server is an autogenerated conversion function.
func Convert_v1alpha1_ShootSchedulerConfiguration_To_config_ShootSchedulerConfiguration ¶
func Convert_v1alpha1_ShootSchedulerConfiguration_To_config_ShootSchedulerConfiguration(in *ShootSchedulerConfiguration, out *config.ShootSchedulerConfiguration, s conversion.Scope) error
Convert_v1alpha1_ShootSchedulerConfiguration_To_config_ShootSchedulerConfiguration is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func SetDefaults_ClientConnection ¶
func SetDefaults_ClientConnection(obj *componentbaseconfigv1alpha1.ClientConnectionConfiguration)
SetDefaults_ClientConnection sets defaults for the client connection.
func SetDefaults_LeaderElectionConfiguration ¶
func SetDefaults_LeaderElectionConfiguration(obj *LeaderElectionConfiguration)
SetDefaults_LeaderElectionConfiguration sets defaults for the leader election of the Gardener controller manager.
func SetDefaults_SchedulerConfiguration ¶
func SetDefaults_SchedulerConfiguration(obj *SchedulerConfiguration)
SetDefaults_SchedulerConfiguration sets defaults for the configuration of the Gardener scheduler.
func SetObjectDefaults_SchedulerConfiguration ¶
func SetObjectDefaults_SchedulerConfiguration(in *SchedulerConfiguration)
Types ¶
type BackupBucketSchedulerConfiguration ¶
type BackupBucketSchedulerConfiguration struct { // ConcurrentSyncs is the number of workers used for the controller to work on // events. ConcurrentSyncs int `json:"concurrentSyncs"` // RetrySyncPeriod is the duration how fast BackupBuckets with an errornous operation are // re-added to the queue so that the operation can be retried. Defaults to 15s. // +optional RetrySyncPeriod metav1.Duration `json:"retrySyncPeriod,omitempty"` }
BackupBucketSchedulerConfiguration defines the configuration of the BackupBucket to Seed scheduler.
func (*BackupBucketSchedulerConfiguration) DeepCopy ¶
func (in *BackupBucketSchedulerConfiguration) DeepCopy() *BackupBucketSchedulerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupBucketSchedulerConfiguration.
func (*BackupBucketSchedulerConfiguration) DeepCopyInto ¶
func (in *BackupBucketSchedulerConfiguration) DeepCopyInto(out *BackupBucketSchedulerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CandidateDeterminationStrategy ¶
type CandidateDeterminationStrategy string
CandidateDeterminationStrategy defines how seeds for shoots, that do not specify a seed explicitly, are being determined
type DiscoveryConfiguration ¶
type DiscoveryConfiguration struct { // DiscoveryCacheDir is the directory to store discovery cache information. // If unset, the discovery client will use the current working directory. // +optional DiscoveryCacheDir *string `json:"discoveryCacheDir,omitempty"` // HTTPCacheDir is the directory to store discovery HTTP cache information. // If unset, no HTTP caching will be done. // +optional HTTPCacheDir *string `json:"httpCacheDir,omitempty"` // TTL is the ttl how long discovery cache information shall be valid. // +optional TTL *metav1.Duration `json:"ttl,omitempty"` }
DiscoveryConfiguration defines the configuration of how to discover API groups. It allows to set where to store caching data and to specify the TTL of that data.
func (*DiscoveryConfiguration) DeepCopy ¶
func (in *DiscoveryConfiguration) DeepCopy() *DiscoveryConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiscoveryConfiguration.
func (*DiscoveryConfiguration) DeepCopyInto ¶
func (in *DiscoveryConfiguration) DeepCopyInto(out *DiscoveryConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LeaderElectionConfiguration ¶
type LeaderElectionConfiguration struct { componentbaseconfigv1alpha1.LeaderElectionConfiguration `json:",inline"` // LockObjectNamespace defines the namespace of the lock object. LockObjectNamespace string `json:"lockObjectNamespace"` // LockObjectName defines the lock object name. LockObjectName string `json:"lockObjectName"` }
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 SchedulerConfiguration ¶
type SchedulerConfiguration struct { metav1.TypeMeta `json:",inline"` // ClientConnection specifies the kubeconfig file and client connection // settings for the proxy server to use when communicating with the apiserver. ClientConnection componentbaseconfigv1alpha1.ClientConnectionConfiguration `json:"clientConnection,omitempty"` // LeaderElection defines the configuration of leader election client. LeaderElection LeaderElectionConfiguration `json:"leaderElection,omitempty"` // Discovery defines the configuration of the discovery client. Discovery DiscoveryConfiguration `json:"discovery,omitempty"` // LogLevel is the level/severity for the logs. Must be one of [info,debug,error]. LogLevel string `json:"logLevel,omitempty"` // Server defines the configuration of the HTTP server. Server ServerConfiguration `json:"server,omitempty"` // Scheduler defines the configuration of the schedulers. Schedulers SchedulerControllerConfiguration `json:"schedulers"` }
SchedulerConfiguration provides the configuration for the SeedManager admission plugin.
func (*SchedulerConfiguration) DeepCopy ¶
func (in *SchedulerConfiguration) DeepCopy() *SchedulerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulerConfiguration.
func (*SchedulerConfiguration) DeepCopyInto ¶
func (in *SchedulerConfiguration) DeepCopyInto(out *SchedulerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SchedulerConfiguration) DeepCopyObject ¶
func (in *SchedulerConfiguration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SchedulerControllerConfiguration ¶
type SchedulerControllerConfiguration struct { // BackupBucket defines the configuration of the BackupBucket controller. // +optional BackupBucket *BackupBucketSchedulerConfiguration `json:"backupBucket,omitempty"` // Shoot defines the configuration of the Shoot controller. // +optional Shoot *ShootSchedulerConfiguration `json:"shoot,omitempty"` }
SchedulerControllerConfiguration defines the configuration of the controllers.
func (*SchedulerControllerConfiguration) DeepCopy ¶
func (in *SchedulerControllerConfiguration) DeepCopy() *SchedulerControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulerControllerConfiguration.
func (*SchedulerControllerConfiguration) DeepCopyInto ¶
func (in *SchedulerControllerConfiguration) DeepCopyInto(out *SchedulerControllerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Server ¶
type Server struct { // BindAddress is the IP address on which to listen for the specified port. BindAddress string `json:"bindAddress"` // Port is the port on which to serve unsecured, unauthenticated access. Port int `json:"port"` }
Server contains information for HTTP(S) server configuration.
func (*Server) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Server.
func (*Server) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServerConfiguration ¶
type ServerConfiguration struct { // HTTP is the configuration for the HTTP server. HTTP Server `json:"http"` }
ServerConfiguration contains details for the HTTP(S) servers.
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 ShootSchedulerConfiguration ¶
type ShootSchedulerConfiguration struct { // ConcurrentSyncs is the number of workers used for the controller to work on // events. ConcurrentSyncs int `json:"concurrentSyncs"` // RetrySyncPeriod is the duration how fast Shoots with an errornous operation are // re-added to the queue so that the operation can be retried. Defaults to 15s. // +optional RetrySyncPeriod metav1.Duration `json:"retrySyncPeriod,omitempty"` // Strategy defines how seeds for shoots, that do not specify a seed explicitly, are being determined Strategy CandidateDeterminationStrategy `json:"candidateDeterminationStrategy"` }
ShootSchedulerConfiguration defines the configuration of the Shoot to Seed scheduler.
func (*ShootSchedulerConfiguration) DeepCopy ¶
func (in *ShootSchedulerConfiguration) DeepCopy() *ShootSchedulerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShootSchedulerConfiguration.
func (*ShootSchedulerConfiguration) DeepCopyInto ¶
func (in *ShootSchedulerConfiguration) DeepCopyInto(out *ShootSchedulerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.