v1alpha1

package
v1.80.6 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultLockObjectNamespace is the default lock namespace for leader election.
	DefaultLockObjectNamespace = "garden"
	// DefaultLockObjectName is the default lock name for leader election.
	DefaultLockObjectName = "gardener-operator-leader-election"
)
View Source
const GroupName = "operator.config.gardener.cloud"

GroupName is the group name used 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_config_ConditionThreshold_To_v1alpha1_ConditionThreshold added in v1.76.0

func Convert_config_ConditionThreshold_To_v1alpha1_ConditionThreshold(in *config.ConditionThreshold, out *ConditionThreshold, s conversion.Scope) error

Convert_config_ConditionThreshold_To_v1alpha1_ConditionThreshold is an autogenerated conversion function.

func Convert_config_ControllerConfiguration_To_v1alpha1_ControllerConfiguration

func Convert_config_ControllerConfiguration_To_v1alpha1_ControllerConfiguration(in *config.ControllerConfiguration, out *ControllerConfiguration, s conversion.Scope) error

Convert_config_ControllerConfiguration_To_v1alpha1_ControllerConfiguration is an autogenerated conversion function.

func Convert_config_GardenCareControllerConfiguration_To_v1alpha1_GardenCareControllerConfiguration added in v1.76.0

func Convert_config_GardenCareControllerConfiguration_To_v1alpha1_GardenCareControllerConfiguration(in *config.GardenCareControllerConfiguration, out *GardenCareControllerConfiguration, s conversion.Scope) error

Convert_config_GardenCareControllerConfiguration_To_v1alpha1_GardenCareControllerConfiguration is an autogenerated conversion function.

func Convert_config_GardenControllerConfig_To_v1alpha1_GardenControllerConfig

func Convert_config_GardenControllerConfig_To_v1alpha1_GardenControllerConfig(in *config.GardenControllerConfig, out *GardenControllerConfig, s conversion.Scope) error

Convert_config_GardenControllerConfig_To_v1alpha1_GardenControllerConfig is an autogenerated conversion function.

func Convert_config_NetworkPolicyControllerConfiguration_To_v1alpha1_NetworkPolicyControllerConfiguration added in v1.71.0

func Convert_config_NetworkPolicyControllerConfiguration_To_v1alpha1_NetworkPolicyControllerConfiguration(in *config.NetworkPolicyControllerConfiguration, out *NetworkPolicyControllerConfiguration, s conversion.Scope) error

Convert_config_NetworkPolicyControllerConfiguration_To_v1alpha1_NetworkPolicyControllerConfiguration is an autogenerated conversion function.

func Convert_config_NodeTolerationConfiguration_To_v1alpha1_NodeTolerationConfiguration added in v1.71.0

func Convert_config_NodeTolerationConfiguration_To_v1alpha1_NodeTolerationConfiguration(in *config.NodeTolerationConfiguration, out *NodeTolerationConfiguration, s conversion.Scope) error

Convert_config_NodeTolerationConfiguration_To_v1alpha1_NodeTolerationConfiguration is an autogenerated conversion function.

func Convert_config_OperatorConfiguration_To_v1alpha1_OperatorConfiguration

func Convert_config_OperatorConfiguration_To_v1alpha1_OperatorConfiguration(in *config.OperatorConfiguration, out *OperatorConfiguration, s conversion.Scope) error

Convert_config_OperatorConfiguration_To_v1alpha1_OperatorConfiguration is an autogenerated conversion function.

func Convert_config_ServerConfiguration_To_v1alpha1_ServerConfiguration

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

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_v1alpha1_ConditionThreshold_To_config_ConditionThreshold added in v1.76.0

func Convert_v1alpha1_ConditionThreshold_To_config_ConditionThreshold(in *ConditionThreshold, out *config.ConditionThreshold, s conversion.Scope) error

Convert_v1alpha1_ConditionThreshold_To_config_ConditionThreshold is an autogenerated conversion function.

func Convert_v1alpha1_ControllerConfiguration_To_config_ControllerConfiguration

func Convert_v1alpha1_ControllerConfiguration_To_config_ControllerConfiguration(in *ControllerConfiguration, out *config.ControllerConfiguration, s conversion.Scope) error

Convert_v1alpha1_ControllerConfiguration_To_config_ControllerConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_GardenCareControllerConfiguration_To_config_GardenCareControllerConfiguration added in v1.76.0

func Convert_v1alpha1_GardenCareControllerConfiguration_To_config_GardenCareControllerConfiguration(in *GardenCareControllerConfiguration, out *config.GardenCareControllerConfiguration, s conversion.Scope) error

Convert_v1alpha1_GardenCareControllerConfiguration_To_config_GardenCareControllerConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_GardenControllerConfig_To_config_GardenControllerConfig

func Convert_v1alpha1_GardenControllerConfig_To_config_GardenControllerConfig(in *GardenControllerConfig, out *config.GardenControllerConfig, s conversion.Scope) error

Convert_v1alpha1_GardenControllerConfig_To_config_GardenControllerConfig is an autogenerated conversion function.

func Convert_v1alpha1_NetworkPolicyControllerConfiguration_To_config_NetworkPolicyControllerConfiguration added in v1.71.0

func Convert_v1alpha1_NetworkPolicyControllerConfiguration_To_config_NetworkPolicyControllerConfiguration(in *NetworkPolicyControllerConfiguration, out *config.NetworkPolicyControllerConfiguration, s conversion.Scope) error

Convert_v1alpha1_NetworkPolicyControllerConfiguration_To_config_NetworkPolicyControllerConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_NodeTolerationConfiguration_To_config_NodeTolerationConfiguration added in v1.71.0

func Convert_v1alpha1_NodeTolerationConfiguration_To_config_NodeTolerationConfiguration(in *NodeTolerationConfiguration, out *config.NodeTolerationConfiguration, s conversion.Scope) error

Convert_v1alpha1_NodeTolerationConfiguration_To_config_NodeTolerationConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_OperatorConfiguration_To_config_OperatorConfiguration

func Convert_v1alpha1_OperatorConfiguration_To_config_OperatorConfiguration(in *OperatorConfiguration, out *config.OperatorConfiguration, s conversion.Scope) error

Convert_v1alpha1_OperatorConfiguration_To_config_OperatorConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_ServerConfiguration_To_config_ServerConfiguration

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

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 RegisterConversions

func RegisterConversions(s *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_ClientConnectionConfiguration

func SetDefaults_ClientConnectionConfiguration(obj *componentbaseconfigv1alpha1.ClientConnectionConfiguration)

SetDefaults_ClientConnectionConfiguration sets defaults for the garden client connection.

func SetDefaults_GardenCareControllerConfiguration added in v1.76.0

func SetDefaults_GardenCareControllerConfiguration(obj *GardenCareControllerConfiguration)

SetDefaults_GardenCareControllerConfiguration sets defaults for the GardenCareControllerConfiguration object.

func SetDefaults_GardenControllerConfig

func SetDefaults_GardenControllerConfig(obj *GardenControllerConfig)

SetDefaults_GardenControllerConfig sets defaults for the GardenControllerConfig object.

func SetDefaults_LeaderElectionConfiguration

func SetDefaults_LeaderElectionConfiguration(obj *componentbaseconfigv1alpha1.LeaderElectionConfiguration)

SetDefaults_LeaderElectionConfiguration sets defaults for the leader election of the Gardener operator.

func SetDefaults_OperatorConfiguration

func SetDefaults_OperatorConfiguration(obj *OperatorConfiguration)

SetDefaults_OperatorConfiguration sets defaults for the configuration of the Gardener operator.

func SetDefaults_ServerConfiguration

func SetDefaults_ServerConfiguration(obj *ServerConfiguration)

SetDefaults_ServerConfiguration sets defaults for the server configuration.

func SetObjectDefaults_OperatorConfiguration

func SetObjectDefaults_OperatorConfiguration(in *OperatorConfiguration)

Types

type ConditionThreshold added in v1.76.0

type ConditionThreshold struct {
	// Type is the type of the condition to define the threshold for.
	Type string `json:"type"`
	// Duration is the duration how long the condition can stay in the progressing state.
	Duration metav1.Duration `json:"duration"`
}

ConditionThreshold defines the threshold of the given condition type.

func (*ConditionThreshold) DeepCopy added in v1.76.0

func (in *ConditionThreshold) DeepCopy() *ConditionThreshold

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

func (*ConditionThreshold) DeepCopyInto added in v1.76.0

func (in *ConditionThreshold) DeepCopyInto(out *ConditionThreshold)

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

type ControllerConfiguration

type ControllerConfiguration struct {
	// Garden is the configuration for the garden controller.
	Garden GardenControllerConfig `json:"garden"`
	// GardenCare is the configuration for the garden care controller
	GardenCare GardenCareControllerConfiguration `json:"gardenCare"`
	// NetworkPolicy is the configuration for the NetworkPolicy controller.
	NetworkPolicy NetworkPolicyControllerConfiguration `json:"networkPolicy"`
}

ControllerConfiguration defines the configuration of the controllers.

func (*ControllerConfiguration) DeepCopy

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

func (*ControllerConfiguration) DeepCopyInto

func (in *ControllerConfiguration) DeepCopyInto(out *ControllerConfiguration)

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

type GardenCareControllerConfiguration added in v1.76.0

type GardenCareControllerConfiguration struct {
	// SyncPeriod is the duration how often the existing resources are reconciled (how
	// often the health check is performed).
	// +optional
	SyncPeriod *metav1.Duration `json:"syncPeriod,omitempty"`
	// ConditionThresholds defines the condition threshold per condition type.
	// +optional
	ConditionThresholds []ConditionThreshold `json:"conditionThresholds,omitempty"`
}

GardenCareControllerConfiguration defines the configuration of the GardenCare controller.

func (*GardenCareControllerConfiguration) DeepCopy added in v1.76.0

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

func (*GardenCareControllerConfiguration) DeepCopyInto added in v1.76.0

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

type GardenControllerConfig

type GardenControllerConfig struct {
	// ConcurrentSyncs is the number of concurrent worker routines for this controller.
	// +optional
	ConcurrentSyncs *int `json:"concurrentSyncs,omitempty"`
	// SyncPeriod is the duration how often the controller performs its reconciliation.
	// +optional
	SyncPeriod *metav1.Duration `json:"syncPeriod,omitempty"`
	// ETCDConfig contains an optional configuration for the
	// backup compaction feature of ETCD backup-restore functionality.
	// +optional
	ETCDConfig *gardenletv1alpha1.ETCDConfig `json:"etcdConfig,omitempty"`
}

GardenControllerConfig is the configuration for the garden controller.

func (*GardenControllerConfig) DeepCopy

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

func (*GardenControllerConfig) DeepCopyInto

func (in *GardenControllerConfig) DeepCopyInto(out *GardenControllerConfig)

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

type NetworkPolicyControllerConfiguration added in v1.71.0

type NetworkPolicyControllerConfiguration struct {
	// ConcurrentSyncs is the number of concurrent worker routines for this controller.
	// +optional
	ConcurrentSyncs *int `json:"concurrentSyncs,omitempty"`
	// AdditionalNamespaceSelectors is a list of label selectors for additional namespaces that should be considered by
	// the controller.
	// +optional
	AdditionalNamespaceSelectors []metav1.LabelSelector `json:"additionalNamespaceSelectors,omitempty"`
}

NetworkPolicyControllerConfiguration defines the configuration of the NetworkPolicy controller.

func (*NetworkPolicyControllerConfiguration) DeepCopy added in v1.71.0

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

func (*NetworkPolicyControllerConfiguration) DeepCopyInto added in v1.71.0

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

type NodeTolerationConfiguration added in v1.71.0

type NodeTolerationConfiguration struct {
	// DefaultNotReadyTolerationSeconds specifies the seconds for the `node.kubernetes.io/not-ready` toleration that
	// should be added to pods not already tolerating this taint.
	// +optional
	DefaultNotReadyTolerationSeconds *int64 `json:"defaultNotReadyTolerationSeconds,omitempty"`
	// DefaultUnreachableTolerationSeconds specifies the seconds for the `node.kubernetes.io/unreachable` toleration that
	// should be added to pods not already tolerating this taint.
	// +optional
	DefaultUnreachableTolerationSeconds *int64 `json:"defaultUnreachableTolerationSeconds,omitempty"`
}

NodeTolerationConfiguration contains information about node toleration options.

func (*NodeTolerationConfiguration) DeepCopy added in v1.71.0

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

func (*NodeTolerationConfiguration) DeepCopyInto added in v1.71.0

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

type OperatorConfiguration

type OperatorConfiguration struct {
	metav1.TypeMeta `json:",inline"`
	// RuntimeClientConnection specifies the kubeconfig file and the client connection settings for the proxy server to
	// use when communicating with the kube-apiserver of the runtime cluster.
	RuntimeClientConnection componentbaseconfigv1alpha1.ClientConnectionConfiguration `json:"runtimeClientConnection"`
	// VirtualClientConnection specifies the kubeconfig file and the client connection settings for the proxy server to
	// use when communicating with the kube-apiserver of the virtual cluster.
	VirtualClientConnection componentbaseconfigv1alpha1.ClientConnectionConfiguration `json:"virtualClientConnection"`
	// LeaderElection defines the configuration of leader election client.
	LeaderElection componentbaseconfigv1alpha1.LeaderElectionConfiguration `json:"leaderElection"`
	// LogLevel is the level/severity for the logs. Must be one of [info,debug,error].
	LogLevel string `json:"logLevel"`
	// LogFormat is the output format for the logs. Must be one of [text,json].
	LogFormat string `json:"logFormat"`
	// Server defines the configuration of the HTTP server.
	Server ServerConfiguration `json:"server"`
	// Debugging holds configuration for Debugging related features.
	// +optional
	Debugging *componentbaseconfigv1alpha1.DebuggingConfiguration `json:"debugging,omitempty"`
	// 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/operator/features/features.go".
	// Default: nil
	// +optional
	FeatureGates map[string]bool `json:"featureGates,omitempty"`
	// Controllers defines the configuration of the controllers.
	Controllers ControllerConfiguration `json:"controllers"`
	// NodeToleration contains optional settings for default tolerations.
	// +optional
	NodeToleration *NodeTolerationConfiguration `json:"nodeToleration,omitempty"`
}

OperatorConfiguration defines the configuration for the Gardener operator.

func (*OperatorConfiguration) DeepCopy

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

func (*OperatorConfiguration) DeepCopyInto

func (in *OperatorConfiguration) DeepCopyInto(out *OperatorConfiguration)

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

func (*OperatorConfiguration) DeepCopyObject

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

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

type Server

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 requests.
	Port int `json:"port"`
}

Server contains information for HTTP(S) server configuration.

func (*Server) DeepCopy

func (in *Server) DeepCopy() *Server

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

func (*Server) DeepCopyInto

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

type ServerConfiguration struct {
	// Webhooks is the configuration for the HTTPS webhook server.
	Webhooks Server `json:"webhooks"`
	// HealthProbes is the configuration for serving the healthz and readyz endpoints.
	// +optional
	HealthProbes *Server `json:"healthProbes,omitempty"`
	// Metrics is the configuration for serving the metrics endpoint.
	// +optional
	Metrics *Server `json:"metrics,omitempty"`
}

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.

Jump to

Keyboard shortcuts

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