Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type BackupBucketSchedulerConfiguration
- type BackupEntrySchedulerConfiguration
- type CandidateDeterminationStrategy
- 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 ( // SchemeBuilder used to register the SchedulerConfiguration 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
var Strategies = []CandidateDeterminationStrategy{SameRegion, MinimalDistance}
Strategies defines all currently implemented SeedCandidateDeterminationStrategies
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type BackupBucketSchedulerConfiguration ¶
type BackupBucketSchedulerConfiguration struct { // ConcurrentSyncs is the number of workers used for the controller to work on // events. ConcurrentSyncs int // 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 }
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 BackupEntrySchedulerConfiguration ¶
type BackupEntrySchedulerConfiguration struct { // ConcurrentSyncs is the number of workers used for the controller to work on // events. ConcurrentSyncs int // RetrySyncPeriod is the duration how fast BackupEntries with an errornous operation are // re-added to the queue so that the operation can be retried. Defaults to 15s. // +optional RetrySyncPeriod metav1.Duration }
BackupEntrySchedulerConfiguration defines the configuration of the BackupEntry to Seed scheduler.
func (*BackupEntrySchedulerConfiguration) DeepCopy ¶
func (in *BackupEntrySchedulerConfiguration) DeepCopy() *BackupEntrySchedulerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupEntrySchedulerConfiguration.
func (*BackupEntrySchedulerConfiguration) DeepCopyInto ¶
func (in *BackupEntrySchedulerConfiguration) DeepCopyInto(out *BackupEntrySchedulerConfiguration)
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 LeaderElectionConfiguration ¶
type LeaderElectionConfiguration struct { componentbaseconfig.LeaderElectionConfiguration // 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 SchedulerConfiguration ¶
type SchedulerConfiguration struct { metav1.TypeMeta // ClientConnection specifies the kubeconfig file and client connection // settings for the proxy server to use when communicating with the gardener-apiserver. ClientConnection componentbaseconfig.ClientConnectionConfiguration // 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 // Server defines the configuration of the HTTP server. Server ServerConfiguration // Scheduler defines the configuration of the schedulers. Schedulers SchedulerControllerConfiguration }
SchedulerConfiguration provides the configuration for the Gardener scheduler
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 // Shoot defines the configuration of the Shoot controller. // +optional Shoot *ShootSchedulerConfiguration }
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 // Port is the port on which to serve unsecured, unauthenticated access. Port int }
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 }
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 // 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 // Strategy defines how seeds for shoots, that do not specify a seed explicitly, are being determined Strategy 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.