executor

package
v1.7.1-0...-23dd39d Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 15 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"
)

Variables

This section is empty.

Functions

func Script

func Script(
	bootstrapToken string,
	cloudConfigUserData []byte,
	images map[string]interface{},
	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