Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultInterval is the default interval for retry operations. DefaultInterval = 5 * time.Second // DefaultSevereThreshold is the default threshold until an error reported by another component is treated as // 'severe'. DefaultSevereThreshold = 30 * time.Second // DefaultTimeout is the default timeout and defines how long Gardener should wait for a successful reconciliation // of an OperatingSystemConfig resource. DefaultTimeout = 3 * time.Minute )
Variables ¶
View Source
var ( // InitConfigFn is a function for computing the gardener-node-init units and files. InitConfigFn = nodeinit.Config // OriginalConfigFn is a function for computing the downloaded cloud config user data units and files. OriginalConfigFn = original.Config )
exposed for testing
View Source
var TimeNow = time.Now
TimeNow returns the current time. Exposed for testing.
Functions ¶
Types ¶
type Data ¶
type Data struct { // Object is the plain OperatingSystemConfig object. Object *extensionsv1alpha1.OperatingSystemConfig // Content is the actual cloud-config user data. // TODO(rfranzke): Remove this Content field after v1.100 is released. Content string // GardenerNodeAgentSecretName is the name of the secret storing the gardener node agent configuration in the shoot cluster. GardenerNodeAgentSecretName string // SecretName is the name of a secret storing the actual cloud-config user data. SecretName *string // Command is the command for reloading the cloud-config (in case a new version was downloaded). Command *string // Units is the list of systemd unit names. Units []string // Files is the list of file paths. Files []string }
Data contains the actual content, a command to load it and all units that shall be considered for restart on change.
type InitValues ¶ added in v1.85.0
type InitValues struct { // APIServerURL is the address (including https:// protocol prefix) to the kube-apiserver (from which the original // cloud-config user data will be downloaded). APIServerURL string }
InitValues are configuration values required for the 'provision' OperatingSystemConfigPurpose.
type Interface ¶
type Interface interface { component.DeployMigrateWaiter // DeleteStaleResources deletes unused OperatingSystemConfig resources from the shoot namespace in the seed. DeleteStaleResources(context.Context) error // WaitCleanupStaleResources waits until all unused OperatingSystemConfig resources are cleaned up. WaitCleanupStaleResources(context.Context) error // SetAPIServerURL sets the APIServerURL value. SetAPIServerURL(string) // SetCABundle sets the CABundle value. SetCABundle(*string) // SetSSHPublicKeys sets the SSHPublicKeys value. SetSSHPublicKeys([]string) // WorkerNameToOperatingSystemConfigsMap returns a map whose key is a worker name and whose value is a structure // containing both the init and the original operating system config data. WorkerNameToOperatingSystemConfigsMap() map[string]*OperatingSystemConfigs }
Interface is an interface for managing OperatingSystemConfigs.
type OperatingSystemConfigs ¶
type OperatingSystemConfigs struct { // Init is the data for the init script. Init Data // Original is the data for the to-be-downloaded original config. Original Data }
OperatingSystemConfigs contains operating system configs for the init script as well as for the original config.
type OriginalValues ¶
type OriginalValues struct { // CABundle is the bundle of certificate authorities that will be added as root certificates. CABundle *string // ClusterDNSAddress is the address for in-cluster DNS. ClusterDNSAddress string // ClusterDomain is the Kubernetes cluster domain. ClusterDomain string // Images is a map containing the necessary container images for the systemd units (hyperkube and pause-container). Images map[string]*imagevectorutils.Image // KubeletConfig is the default kubelet configuration for all worker pools. Individual worker pools might overwrite // this configuration. KubeletConfig *gardencorev1beta1.KubeletConfig // MachineTypes is a list of machine types. MachineTypes []gardencorev1beta1.MachineType // SSHPublicKeys is a list of public SSH keys. SSHPublicKeys []string // SSHAccessEnabled states whether sshd.service service in systemd should be enabled and running for the worker nodes. SSHAccessEnabled bool // ValitailEnabled states whether Valitail shall be enabled. ValitailEnabled bool // ValiIngressHostName is the ingress host name of the shoot's Vali. ValiIngressHostName string // NodeLocalDNSEnabled indicates whether node local dns is enabled or not. NodeLocalDNSEnabled bool // PrimaryIPFamily represents the preferred IP family (IPv4 or IPv6) to be used. PrimaryIPFamily gardencorev1beta1.IPFamily }
OriginalValues are configuration values required for the 'reconcile' OperatingSystemConfigPurpose.
type Values ¶
type Values struct { // Namespace is the namespace for the OperatingSystemConfig resource. Namespace string // KubernetesVersion is the version for the kubelets of all worker pools. KubernetesVersion *semver.Version // Workers is the list of worker pools. Workers []gardencorev1beta1.Worker // InitValues are configuration values required for the 'provision' OperatingSystemConfigPurpose. InitValues // OriginalValues are configuration values required for the 'reconcile' OperatingSystemConfigPurpose. OriginalValues }
Values contains the values used to create an OperatingSystemConfig resource.
Directories
¶
Path | Synopsis |
---|---|
Package operatingsystemconfig is a generated GoMock package.
|
Package operatingsystemconfig is a generated GoMock package. |
components/kubelet/mock
Package kubelet is a generated GoMock package.
|
Package kubelet is a generated GoMock package. |
components/mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
mock
Package utils is a generated GoMock package.
|
Package utils is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.