executor

package
v1.85.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 17 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 = nodeagentv1alpha1.AnnotationKeyChecksumAppliedOperatingSystemConfig
	// 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,
	cloudConfigExecutionMaxDelaySeconds int,
	hyperkubeImage *imagevector.Image,
	kubernetesVersion string,
	kubeletDataVolume *gardencorev1beta1.DataVolume,
	reloadConfigCommand string,
	units []string,
	files []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