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

package v1alpha1

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

Index

Package Files

defaults.go doc.go register.go types.go zz_generated.conversion.go zz_generated.deepcopy.go zz_generated.defaults.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 (
    // 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

func Convert_config_BackupBucketSchedulerConfiguration_To_v1alpha1_BackupBucketSchedulerConfiguration Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults Uses

func RegisterDefaults(scheme *runtime.Scheme) error

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 Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SetDefaults_ClientConnection Uses

func SetDefaults_ClientConnection(obj *componentbaseconfigv1alpha1.ClientConnectionConfiguration)

SetDefaults_ClientConnection sets defaults for the client connection.

func SetDefaults_LeaderElectionConfiguration Uses

func SetDefaults_LeaderElectionConfiguration(obj *LeaderElectionConfiguration)

SetDefaults_LeaderElectionConfiguration sets defaults for the leader election of the Gardener controller manager.

func SetDefaults_SchedulerConfiguration Uses

func SetDefaults_SchedulerConfiguration(obj *SchedulerConfiguration)

SetDefaults_SchedulerConfiguration sets defaults for the configuration of the Gardener scheduler.

func SetObjectDefaults_SchedulerConfiguration Uses

func SetObjectDefaults_SchedulerConfiguration(in *SchedulerConfiguration)

type BackupBucketSchedulerConfiguration Uses

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 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 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 `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 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 {
    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 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 `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 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 `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 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 `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 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 `json:"http"`
}

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 `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 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.

Package v1alpha1 imports 13 packages (graph) and is imported by 2 packages. Updated 2020-02-20. Refresh now. Tools for package owners.