executor

package
v1.47.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnnotationKeyChecksum is the key of an annotation on a shoot Node object whose value is the checksum
	// of the last applied cloud config user data.
	AnnotationKeyChecksum = "checksum/cloud-config-data"
	// ExecutionMaxDelaySeconds is a constant for the maximum delay in seconds for the execution of a downloaded
	// cloud-config user data. Each worker node will randomly select a value in [1,ExecutionMaxDelaySeconds) and always
	// delays the execution by this number.
	ExecutionMaxDelaySeconds = 300
	// PathExecutionDelaySeconds is the path on the shoot worker nodes at which the randomly computed delay for the
	// execution will be persisted.
	PathExecutionDelaySeconds = downloader.PathCCDDirectory + "/execution_delay_seconds"
	// PathExecutionLastDate is the path on the shoot worker nodes at which the date of the last execution will be
	// persisted.
	PathExecutionLastDate = downloader.PathCCDDirectory + "/execution_last_date"
	// PathHyperkubeDownloads is the path on the shoot worker nodes to which the binaries will be extracted from the
	// hyperkube image.
	PathHyperkubeDownloads = downloader.PathDownloadsDirectory + "/hyperkube"
	// PathLastDownloadedHyperkubeImage is the path on the shoot worker nodes at which the last downloaded hyperkube image
	// name will be stored.
	PathLastDownloadedHyperkubeImage = PathHyperkubeDownloads + "/last_downloaded_hyperkube_image"
	// PathHyperKubeImageUsedForLastCopyKubelet is the path on the shoot worker at which the last downloaded hyperkube image
	// name will be stored from which the kubelet binary was extracted.
	PathHyperKubeImageUsedForLastCopyKubelet = v1beta1constants.OperatingSystemConfigFilePathBinaries + "/hyperkube_image_used_for_last_copy_of_kubelet"
	// PathHyperKubeImageUsedForLastCopyKubectl is the path on the shoot worker at which the last downloaded hyperkube image
	// name will be stored from which the kubectl binary was extracted.
	PathHyperKubeImageUsedForLastCopyKubectl = v1beta1constants.OperatingSystemConfigFilePathBinaries + "/hyperkube_image_used_for_last_copy_of_kubectl"
)

Variables

This section is empty.

Functions

func Script

func Script(
	cloudConfigUserData []byte,
	hyperkubeImage *imagevector.Image,
	kubernetesVersion string,
	kubeletDataVolume *gardencorev1beta1.DataVolume,
	reloadConfigCommand string,
	units []string,
) (
	[]byte,
	error,
)

Script returns the executor script that applies the downloaded cloud-config user-data.

func Secret

func Secret(name, namespace, poolName string, script []byte) *corev1.Secret

Secret returns a Kubernetes secret object containing the cloud-config user-data executor script.

Types

This section is empty.

Jump to

Keyboard shortcuts

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