Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type BackupBucketSchedulerConfiguration
- type BackupEntrySchedulerConfiguration
- type CandidateDeterminationStrategy
- 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 }
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 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 componentbaseconfig.LeaderElectionConfiguration // LogLevel is the level/severity for the logs. Must be one of [info,debug,error]. LogLevel string // LogFormat is the output format for the logs. Must be one of [text,json]. LogFormat string // Server defines the configuration of the HTTP server. This is deprecated in favor of // HealthServer. Server ServerConfiguration // Debugging holds configuration for Debugging related features. Debugging *componentbaseconfig.DebuggingConfiguration // Scheduler defines the configuration of the schedulers. Schedulers SchedulerControllerConfiguration // FeatureGates is a map of feature names to bools that enable or disable alpha/experimental // features. This field modifies piecemeal the built-in default values from // "github.com/gardener/gardener/pkg/scheduler/features/features.go". // Default: nil FeatureGates map[string]bool }
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 { // HealthProbes is the configuration for serving the healthz and readyz endpoints. HealthProbes *Server // Metrics is the configuration for serving the metrics endpoint. Metrics *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 // 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.