v1alpha1

package
v0.0.0-...-133fb1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ControllerManagerDefaultLockObjectNamespace is the default lock namespace for leader election.
	ControllerManagerDefaultLockObjectNamespace = "garden"

	// ControllerManagerDefaultLockObjectName is the default lock name for leader election.
	ControllerManagerDefaultLockObjectName = "garden-controller-manager-leader-election"
)
View Source
const GroupName = "componentconfig.sapcloud.io"

GroupName is the group name use in this package

Variables

View Source
var (
	// SchemeBuilder used to register the Shoot resource.
	SchemeBuilder runtime.SchemeBuilder

	// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_componentconfig_ClientConnectionConfiguration_To_v1alpha1_ClientConnectionConfiguration

func Convert_componentconfig_ClientConnectionConfiguration_To_v1alpha1_ClientConnectionConfiguration(in *componentconfig.ClientConnectionConfiguration, out *ClientConnectionConfiguration, s conversion.Scope) error

Convert_componentconfig_ClientConnectionConfiguration_To_v1alpha1_ClientConnectionConfiguration is an autogenerated conversion function.

func Convert_componentconfig_ControllerManagerConfiguration_To_v1alpha1_ControllerManagerConfiguration

func Convert_componentconfig_ControllerManagerConfiguration_To_v1alpha1_ControllerManagerConfiguration(in *componentconfig.ControllerManagerConfiguration, out *ControllerManagerConfiguration, s conversion.Scope) error

Convert_componentconfig_ControllerManagerConfiguration_To_v1alpha1_ControllerManagerConfiguration is an autogenerated conversion function.

func Convert_componentconfig_ControllerManagerControllerConfiguration_To_v1alpha1_ControllerManagerControllerConfiguration

func Convert_componentconfig_ControllerManagerControllerConfiguration_To_v1alpha1_ControllerManagerControllerConfiguration(in *componentconfig.ControllerManagerControllerConfiguration, out *ControllerManagerControllerConfiguration, s conversion.Scope) error

Convert_componentconfig_ControllerManagerControllerConfiguration_To_v1alpha1_ControllerManagerControllerConfiguration is an autogenerated conversion function.

func Convert_componentconfig_ControllerManagerImagesConfiguration_To_v1alpha1_ControllerManagerImagesConfiguration

func Convert_componentconfig_ControllerManagerImagesConfiguration_To_v1alpha1_ControllerManagerImagesConfiguration(in *componentconfig.ControllerManagerImagesConfiguration, out *ControllerManagerImagesConfiguration, s conversion.Scope) error

Convert_componentconfig_ControllerManagerImagesConfiguration_To_v1alpha1_ControllerManagerImagesConfiguration is an autogenerated conversion function.

func Convert_componentconfig_ControllerReconciliationConfiguration_To_v1alpha1_ControllerReconciliationConfiguration

func Convert_componentconfig_ControllerReconciliationConfiguration_To_v1alpha1_ControllerReconciliationConfiguration(in *componentconfig.ControllerReconciliationConfiguration, out *ControllerReconciliationConfiguration, s conversion.Scope) error

Convert_componentconfig_ControllerReconciliationConfiguration_To_v1alpha1_ControllerReconciliationConfiguration is an autogenerated conversion function.

func Convert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration

func Convert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in *componentconfig.LeaderElectionConfiguration, out *LeaderElectionConfiguration, s conversion.Scope) error

Convert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration is an autogenerated conversion function.

func Convert_componentconfig_MetricsConfiguration_To_v1alpha1_MetricsConfiguration

func Convert_componentconfig_MetricsConfiguration_To_v1alpha1_MetricsConfiguration(in *componentconfig.MetricsConfiguration, out *MetricsConfiguration, s conversion.Scope) error

Convert_componentconfig_MetricsConfiguration_To_v1alpha1_MetricsConfiguration is an autogenerated conversion function.

func Convert_componentconfig_ServerConfiguration_To_v1alpha1_ServerConfiguration

func Convert_componentconfig_ServerConfiguration_To_v1alpha1_ServerConfiguration(in *componentconfig.ServerConfiguration, out *ServerConfiguration, s conversion.Scope) error

Convert_componentconfig_ServerConfiguration_To_v1alpha1_ServerConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_ClientConnectionConfiguration_To_componentconfig_ClientConnectionConfiguration

func Convert_v1alpha1_ClientConnectionConfiguration_To_componentconfig_ClientConnectionConfiguration(in *ClientConnectionConfiguration, out *componentconfig.ClientConnectionConfiguration, s conversion.Scope) error

Convert_v1alpha1_ClientConnectionConfiguration_To_componentconfig_ClientConnectionConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_ControllerManagerConfiguration_To_componentconfig_ControllerManagerConfiguration

func Convert_v1alpha1_ControllerManagerConfiguration_To_componentconfig_ControllerManagerConfiguration(in *ControllerManagerConfiguration, out *componentconfig.ControllerManagerConfiguration, s conversion.Scope) error

Convert_v1alpha1_ControllerManagerConfiguration_To_componentconfig_ControllerManagerConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_ControllerManagerControllerConfiguration_To_componentconfig_ControllerManagerControllerConfiguration

func Convert_v1alpha1_ControllerManagerControllerConfiguration_To_componentconfig_ControllerManagerControllerConfiguration(in *ControllerManagerControllerConfiguration, out *componentconfig.ControllerManagerControllerConfiguration, s conversion.Scope) error

Convert_v1alpha1_ControllerManagerControllerConfiguration_To_componentconfig_ControllerManagerControllerConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_ControllerManagerImagesConfiguration_To_componentconfig_ControllerManagerImagesConfiguration

func Convert_v1alpha1_ControllerManagerImagesConfiguration_To_componentconfig_ControllerManagerImagesConfiguration(in *ControllerManagerImagesConfiguration, out *componentconfig.ControllerManagerImagesConfiguration, s conversion.Scope) error

Convert_v1alpha1_ControllerManagerImagesConfiguration_To_componentconfig_ControllerManagerImagesConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_ControllerReconciliationConfiguration_To_componentconfig_ControllerReconciliationConfiguration

func Convert_v1alpha1_ControllerReconciliationConfiguration_To_componentconfig_ControllerReconciliationConfiguration(in *ControllerReconciliationConfiguration, out *componentconfig.ControllerReconciliationConfiguration, s conversion.Scope) error

Convert_v1alpha1_ControllerReconciliationConfiguration_To_componentconfig_ControllerReconciliationConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration

func Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration(in *LeaderElectionConfiguration, out *componentconfig.LeaderElectionConfiguration, s conversion.Scope) error

Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_MetricsConfiguration_To_componentconfig_MetricsConfiguration

func Convert_v1alpha1_MetricsConfiguration_To_componentconfig_MetricsConfiguration(in *MetricsConfiguration, out *componentconfig.MetricsConfiguration, s conversion.Scope) error

Convert_v1alpha1_MetricsConfiguration_To_componentconfig_MetricsConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_ServerConfiguration_To_componentconfig_ServerConfiguration

func Convert_v1alpha1_ServerConfiguration_To_componentconfig_ServerConfiguration(in *ServerConfiguration, out *componentconfig.ServerConfiguration, s conversion.Scope) error

Convert_v1alpha1_ServerConfiguration_To_componentconfig_ServerConfiguration is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(scheme *runtime.Scheme) error

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

func RegisterDefaults

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

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SetDefaults_ControllerManagerConfiguration

func SetDefaults_ControllerManagerConfiguration(obj *ControllerManagerConfiguration)

SetDefaults_ControllerManagerConfiguration sets defaults for the configuration of the Garden controller manager.

func SetDefaults_LeaderElectionConfiguration

func SetDefaults_LeaderElectionConfiguration(obj *LeaderElectionConfiguration)

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

func SetObjectDefaults_ControllerManagerConfiguration

func SetObjectDefaults_ControllerManagerConfiguration(in *ControllerManagerConfiguration)

Types

type ClientConnectionConfiguration

type ClientConnectionConfiguration struct {
	// KubeConfigFile is the path to a kubeconfig file.
	KubeConfigFile string `json:"kubeconfig"`
	// AcceptContentTypes defines the Accept header sent by clients when connecting to
	// a server, overriding the default value of 'application/json'. This field will
	// control all connections to the server used by a particular client.
	AcceptContentTypes string `json:"acceptContentTypes"`
	// ContentType is the content type used when sending data to the server from this
	// client.
	ContentType string `json:"contentType"`
	// QPS controls the number of queries per second allowed for this connection.
	QPS float32 `json:"qps"`
	// Burst allows extra queries to accumulate when a client is exceeding its rate.
	Burst int32 `json:"burst"`
}

ClientConnectionConfiguration contains details for constructing a client.

func (*ClientConnectionConfiguration) DeepCopy

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

func (*ClientConnectionConfiguration) DeepCopyInto

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

type ControllerManagerConfiguration

type ControllerManagerConfiguration 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 ClientConnectionConfiguration `json:"clientConnection"`
	// Controller defines the configuration of the controllers.
	Controller ControllerManagerControllerConfiguration `json:"controller"`
	// GardenNamespace is the namespace in which the configuration and secrets for
	// the Garden controller manager will be stored (e.g., secrets for the Seed clusters).
	// Not specifying this field means the same namespace the Garden controller manager is
	// running in (only reasonable when the Garden controller manager runs inside a Kubernetes
	// cluster).
	GardenNamespace string `json:"gardenNamespace"`
	// Images is a list of container images which are deployed by the Garden controller manager.
	Images []ControllerManagerImagesConfiguration `json:"images"`
	// LeaderElection defines the configuration of leader election client.
	LeaderElection LeaderElectionConfiguration `json:"leaderElection"`
	// LogLevel is the level/severity for the logs. Must be one of [`info`,`debug`,
	// `error`].
	LogLevel string `json:"logLevel"`
	// Metrics defines the metrics configuration.
	Metrics MetricsConfiguration `json:"metrics"`
	// Server defines the configuration of the HTTP server.
	Server ServerConfiguration `json:"server"`
}

ControllerManagerConfiguration defines the configuration for the Garden controller manager.

func (*ControllerManagerConfiguration) DeepCopy

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

func (*ControllerManagerConfiguration) DeepCopyInto

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

func (*ControllerManagerConfiguration) DeepCopyObject

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

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

type ControllerManagerControllerConfiguration

type ControllerManagerControllerConfiguration struct {
	// HealthCheckPeriod is the duration how often the health check of Shoot clusters
	// is performed (only if no operation is already running on them).
	HealthCheckPeriod metav1.Duration `json:"healthCheckPeriod"`
	// Reconciliation defines the reconciliation settings of the controllers.
	Reconciliation ControllerReconciliationConfiguration `json:"reconciliation"`
	// WatchNamespace defines the namespace which should be watched by the controller.
	WatchNamespace *string `json:"watchNamespace"`
}

ControllerManagerControllerConfiguration contains configuration for the controllers of the Garden controller manager. Not only the usual reconciliation configuration is reflected, but also a health check period and a namespace which should be watched.

func (*ControllerManagerControllerConfiguration) DeepCopy

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

func (*ControllerManagerControllerConfiguration) DeepCopyInto

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

type ControllerManagerImagesConfiguration

type ControllerManagerImagesConfiguration struct {
	// Name is an alias for the image.
	Name string `json:"name"`
	// Image is the name of the image (registry location and used tag/version).
	Image string `json:"image"`
}

ControllerManagerImagesConfiguration contains configuration for the contaimer images and tags/versions which are used by the Garden controller manager.

func (*ControllerManagerImagesConfiguration) DeepCopy

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

func (*ControllerManagerImagesConfiguration) DeepCopyInto

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

type ControllerReconciliationConfiguration

type ControllerReconciliationConfiguration struct {
	// ConcurrentSyncs is the number of workers used for the controller to work on
	// events.
	ConcurrentSyncs int `json:"concurrentSyncs"`
	// ConcurrentSyncs is the duration how often the caches of existing resources
	// are reconciled.
	ResyncPeriod metav1.Duration `json:"resyncPeriod"`
	// RetryDuration is the maximum duration how often a reconciliation will be retried
	// in case of errors.
	RetryDuration *metav1.Duration `json:"retryDuration"`
}

ControllerReconciliationConfiguration contains details for the reconciliation settings of a controller.

func (*ControllerReconciliationConfiguration) DeepCopy

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

func (*ControllerReconciliationConfiguration) DeepCopyInto

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

type LeaderElectionConfiguration

type LeaderElectionConfiguration struct {
	// LeaderElect enables a leader election client to gain leadership
	// before executing the main loop. Enable this when running replicated
	// components for high availability.
	LeaderElect bool `json:"leaderElect"`
	// LeaseDuration is the duration that non-leader candidates will wait
	// after observing a leadership renewal until attempting to acquire
	// leadership of a led but unrenewed leader slot. This is effectively the
	// maximum duration that a leader can be stopped before it is replaced
	// by another candidate. This is only applicable if leader election is
	// enabled.
	LeaseDuration metav1.Duration `json:"leaseDuration"`
	// RenewDeadline is the interval between attempts by the acting master to
	// renew a leadership slot before it stops leading. This must be less
	// than or equal to the lease duration. This is only applicable if leader
	// election is enabled.
	RenewDeadline metav1.Duration `json:"renewDeadline"`
	// RetryPeriod is the duration the clients should wait between attempting
	// acquisition and renewal of a leadership. This is only applicable if
	// leader election is enabled.
	RetryPeriod metav1.Duration `json:"retryPeriod"`
	// ResourceLock indicates the resource object type that will be used to lock
	// during leader election cycles.
	ResourceLock string `json:"resourceLock"`
	// 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

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

func (*LeaderElectionConfiguration) DeepCopyInto

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

type MetricsConfiguration

type MetricsConfiguration struct {
	// The interval defines how frequently metrics get scraped.
	Interval metav1.Duration `json:"interval"`
}

MetricsConfiguration contains options to configure the metrics.

func (*MetricsConfiguration) DeepCopy

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

func (*MetricsConfiguration) DeepCopyInto

func (in *MetricsConfiguration) DeepCopyInto(out *MetricsConfiguration)

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

type ServerConfiguration

type ServerConfiguration 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"`
}

ServerConfiguration contains details for the HTTP server.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL