gardener: github.com/gardener/gardener/pkg/scheduler/apis/config Index | Files | Directories

package config

import "github.com/gardener/gardener/pkg/scheduler/apis/config"

Index

Package Files

doc.go register.go types.go zz_generated.deepcopy.go

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

func Kind Uses

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type BackupBucketSchedulerConfiguration Uses

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 Uses

func (in *BackupBucketSchedulerConfiguration) DeepCopy() *BackupBucketSchedulerConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupBucketSchedulerConfiguration.

func (*BackupBucketSchedulerConfiguration) DeepCopyInto Uses

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 Uses

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 Uses

func (in *BackupEntrySchedulerConfiguration) DeepCopy() *BackupEntrySchedulerConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupEntrySchedulerConfiguration.

func (*BackupEntrySchedulerConfiguration) DeepCopyInto Uses

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 Uses

type CandidateDeterminationStrategy string

CandidateDeterminationStrategy defines how seeds for shoots, that do not specify a seed explicitly, are being determined

type DiscoveryConfiguration Uses

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
    // HTTPCacheDir is the directory to store discovery HTTP cache information.
    // If unset, no HTTP caching will be done.
    // +optional
    HTTPCacheDir *string
    // TTL is the ttl how long discovery cache information shall be valid.
    // +optional
    TTL *metav1.Duration
}

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 Uses

func (in *DiscoveryConfiguration) DeepCopy() *DiscoveryConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiscoveryConfiguration.

func (*DiscoveryConfiguration) DeepCopyInto Uses

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 Uses

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 Uses

func (in *LeaderElectionConfiguration) DeepCopy() *LeaderElectionConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaderElectionConfiguration.

func (*LeaderElectionConfiguration) DeepCopyInto Uses

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 Uses

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
    // Discovery defines the configuration of the discovery client.
    Discovery DiscoveryConfiguration
    // 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 Uses

func (in *SchedulerConfiguration) DeepCopy() *SchedulerConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulerConfiguration.

func (*SchedulerConfiguration) DeepCopyInto Uses

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 Uses

func (in *SchedulerConfiguration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SchedulerControllerConfiguration Uses

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 Uses

func (in *SchedulerControllerConfiguration) DeepCopy() *SchedulerControllerConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulerControllerConfiguration.

func (*SchedulerControllerConfiguration) DeepCopyInto Uses

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 Uses

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 Uses

func (in *Server) DeepCopy() *Server

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Server.

func (*Server) DeepCopyInto Uses

func (in *Server) DeepCopyInto(out *Server)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServerConfiguration Uses

type ServerConfiguration struct {
    // HTTP is the configuration for the HTTP server.
    HTTP Server
}

ServerConfiguration contains details for the HTTP(S) servers.

func (*ServerConfiguration) DeepCopy Uses

func (in *ServerConfiguration) DeepCopy() *ServerConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerConfiguration.

func (*ServerConfiguration) DeepCopyInto Uses

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 Uses

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 Uses

func (in *ShootSchedulerConfiguration) DeepCopy() *ShootSchedulerConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShootSchedulerConfiguration.

func (*ShootSchedulerConfiguration) DeepCopyInto Uses

func (in *ShootSchedulerConfiguration) DeepCopyInto(out *ShootSchedulerConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

PathSynopsis
install
loader
v1alpha1
validation

Package config imports 5 packages (graph) and is imported by 7 packages. Updated 2020-02-20. Refresh now. Tools for package owners.