config

package
v1.91.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "nodeagent.config.gardener.cloud"

GroupName is the group name used in this package.

Variables

View Source
var (
	// SchemeBuilder used to register the NodeAgentConfiguration resource.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects.

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type APIServer added in v1.84.0

type APIServer struct {
	// Server is the address of the API server.
	Server string
	// CABundle is the certificate authority bundle for the API server.
	CABundle []byte
}

APIServer contains information about the API server.

func (*APIServer) DeepCopy added in v1.84.0

func (in *APIServer) DeepCopy() *APIServer

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

func (*APIServer) DeepCopyInto added in v1.84.0

func (in *APIServer) DeepCopyInto(out *APIServer)

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

type BootstrapConfiguration added in v1.83.0

type BootstrapConfiguration struct {
	// KubeletDataVolumeSize sets the data volume size of an unformatted disk on the worker node, which is used for
	// /var/lib on the worker.
	KubeletDataVolumeSize *int64
}

BootstrapConfiguration contains configuration for the bootstrap command.

func (*BootstrapConfiguration) DeepCopy added in v1.83.0

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

func (*BootstrapConfiguration) DeepCopyInto added in v1.83.0

func (in *BootstrapConfiguration) DeepCopyInto(out *BootstrapConfiguration)

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

type ControllerConfiguration added in v1.83.0

type ControllerConfiguration struct {
	// OperatingSystemConfig is the configuration for the operating system config controller.
	OperatingSystemConfig OperatingSystemConfigControllerConfig
	// Token is the configuration for the access token controller.
	Token TokenControllerConfig
}

ControllerConfiguration defines the configuration of the controllers.

func (*ControllerConfiguration) DeepCopy added in v1.83.0

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

func (*ControllerConfiguration) DeepCopyInto added in v1.83.0

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

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

type NodeAgentConfiguration

type NodeAgentConfiguration struct {
	metav1.TypeMeta
	// ClientConnection specifies the kubeconfig file and the client connection settings for the proxy server to use
	// when communicating with the kube-apiserver of the shoot cluster.
	ClientConnection componentbaseconfig.ClientConnectionConfiguration
	// 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.
	Server ServerConfiguration
	// Debugging holds configuration for Debugging related features.
	Debugging *componentbaseconfig.DebuggingConfiguration
	// 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
	FeatureGates map[string]bool
	// APIServer contains information about the API server.
	APIServer APIServer
	// Bootstrap contains configuration for the bootstrap command.
	Bootstrap *BootstrapConfiguration
	// Controllers defines the configuration of the controllers.
	Controllers ControllerConfiguration
}

NodeAgentConfiguration defines the configuration for the gardener-node-agent.

func (*NodeAgentConfiguration) DeepCopy

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

func (*NodeAgentConfiguration) DeepCopyInto

func (in *NodeAgentConfiguration) DeepCopyInto(out *NodeAgentConfiguration)

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

func (*NodeAgentConfiguration) DeepCopyObject

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

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

type OperatingSystemConfigControllerConfig added in v1.83.0

type OperatingSystemConfigControllerConfig struct {
	// SyncPeriod is the duration how often the operating system config is applied.
	SyncPeriod *metav1.Duration
	// SyncJitterPeriod is a jitter duration for the reconciler sync that can be used to distribute the syncs randomly.
	// If its value is greater than 0 then the OSC secret will not be enqueued immediately but only after a random
	// duration between 0 and the configured value. It is defaulted to 5m.
	SyncJitterPeriod *metav1.Duration
	// SecretName defines the name of the secret in the shoot cluster control plane, which contains the operating system
	// config (OSC) for the gardener-node-agent.
	SecretName string
	// KubernetesVersion contains the Kubernetes version of the kubelet, used for annotating the corresponding node
	// resource with a kubernetes version annotation.
	KubernetesVersion *semver.Version
}

OperatingSystemConfigControllerConfig defines the configuration of the operating system config controller.

func (*OperatingSystemConfigControllerConfig) DeepCopy added in v1.83.0

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

func (*OperatingSystemConfigControllerConfig) DeepCopyInto added in v1.83.0

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 requests.
	Port int
}

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 {
	// 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 TokenControllerConfig added in v1.83.0

type TokenControllerConfig struct {
	// SyncConfigs is the list of configurations for syncing access tokens.
	SyncConfigs []TokenSecretSyncConfig
	// SyncPeriod is the duration how often the access token secrets are synced to the disk.
	SyncPeriod *metav1.Duration
}

TokenControllerConfig defines the configuration of the access token controller.

func (*TokenControllerConfig) DeepCopy added in v1.83.0

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

func (*TokenControllerConfig) DeepCopyInto added in v1.83.0

func (in *TokenControllerConfig) DeepCopyInto(out *TokenControllerConfig)

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

type TokenSecretSyncConfig added in v1.85.0

type TokenSecretSyncConfig struct {
	// SecretName defines the name of the secret in the shoot cluster's kube-system namespace which contains the access
	// token.
	SecretName string
	// Path is the path on the machine where the access token content should be synced.
	Path string
}

TokenSecretSyncConfig contains configurations for syncing access tokens.

func (*TokenSecretSyncConfig) DeepCopy added in v1.85.0

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

func (*TokenSecretSyncConfig) DeepCopyInto added in v1.85.0

func (in *TokenSecretSyncConfig) DeepCopyInto(out *TokenSecretSyncConfig)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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