v1alpha1

package
v1.82.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BaseDir is the directory on the worker node that contains gardener-node-agent relevant files.
	BaseDir = "/var/lib/gardener-node-agent"

	// CredentialsDir is the directory on the worker node that contains credentials for the gardener-node-agent.
	CredentialsDir = BaseDir + "/credentials"
	// BootstrapTokenFilePath is the file path on the worker node that contains the bootstrap token for the node.
	BootstrapTokenFilePath = CredentialsDir + "/bootstrap-token"
	// TokenFilePath is the file path on the worker node that contains the access token of the gardener-node-agent.
	TokenFilePath = CredentialsDir + "/token"

	// ConfigPath is the file path on the worker node that contains the configuration
	// of the gardener-node-agent.
	ConfigPath = BaseDir + "/config.yaml"
	// InitScriptPath is the file path on the worker node that contains the init script
	// of the gardener-node-agent.
	InitScriptPath = BaseDir + "/gardener-node-init.sh"

	// NodeInitUnitName is the name of the gardener-node-init systemd service.
	NodeInitUnitName = "gardener-node-init.service"
	// UnitName is the name of the gardener-node-agent systemd service.
	UnitName = "gardener-node-agent.service"

	// OSCSecretKey is the key inside the gardener-node-agent osc secret to access
	// the encoded osc.
	OSCSecretKey = "gardener-node-agent"
	// OSCOldConfigPath is the file path on the worker node that contains the
	// previous content of the osc
	OSCOldConfigPath = BaseDir + "/previous-osc.yaml"
)
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.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_NodeAgentConfiguration_To_v1alpha1_NodeAgentConfiguration

func Convert_config_NodeAgentConfiguration_To_v1alpha1_NodeAgentConfiguration(in *config.NodeAgentConfiguration, out *NodeAgentConfiguration, s conversion.Scope) error

Convert_config_NodeAgentConfiguration_To_v1alpha1_NodeAgentConfiguration 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_NodeAgentConfiguration_To_config_NodeAgentConfiguration

func Convert_v1alpha1_NodeAgentConfiguration_To_config_NodeAgentConfiguration(in *NodeAgentConfiguration, out *config.NodeAgentConfiguration, s conversion.Scope) error

Convert_v1alpha1_NodeAgentConfiguration_To_config_NodeAgentConfiguration 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

Types

type NodeAgentConfiguration

type NodeAgentConfiguration struct {
	metav1.TypeMeta `json:",inline"`
	// 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 componentbaseconfigv1alpha1.ClientConnectionConfiguration `json:"clientConnection"`
	// 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"`
	// OperatingSystemConfigSecretName defines the name of the secret in the shoot cluster control plane, which contains
	// the Operating System Config (OSC) for the gardener-node-agent.
	OperatingSystemConfigSecretName string `json:"operatingSystemConfigSecretName"`
	// AccessTokenSecretName defines the name of the secret in the shoot cluster control plane, which contains
	// the `kube-apiserver` access token for the gardener-node-agent.
	AccessTokenSecretName string `json:"accessTokenSecretName"`
	// Image is the container image reference to the gardener-node-agent.
	Image string `json:"image"`
	// HyperkubeImage is the container image reference to the hyperkube containing kubelet.
	HyperkubeImage string `json:"hyperkubeImage"`
	// KubernetesVersion contains the kubernetes version of the kubelet, used for annotating the corresponding node
	// resource with a kubernetes version annotation.
	KubernetesVersion *semver.Version `json:"kubernetesVersion"`
	// KubeletDataVolumeSize sets the data volume size of an unformatted disk on the worker node, which is used for
	// /var/lib on the worker.
	// +optional
	KubeletDataVolumeSize *int64 `json:"kubeletDataVolumeSize,omitempty"`
}

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 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 {
	// 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