Help us shape the future of Go! Take the 2026 Go Developer Survey

nodeinit

package
v1.151.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// GardenadmBaseDir is the directory on the control plane machine that contains gardenadm-related files.
	GardenadmBaseDir = "/var/lib/gardenadm"
	// GardenadmPathDownloadScript is the path to the download script.
	GardenadmPathDownloadScript = GardenadmBaseDir + "/download.sh"
	// GardenadmBinaryDir is the directory on the control plane machine that contains the gardenadm binary.
	GardenadmBinaryDir = "/opt/bin"
	// GardenadmBinaryName is the name of the gardenadm binary.
	GardenadmBinaryName = "gardenadm"
)
View Source
const PathInitScript = nodeagentconfigv1alpha1.BaseDir + "/init.sh"

PathInitScript is the path to the init script.

Variables

View Source
var (
	// GardenadmBinaryPath is the path to the gardenadm binary.
	GardenadmBinaryPath = filepath.Join(GardenadmBinaryDir, GardenadmBinaryName)
)

Functions

func Config

func Config(
	worker gardencorev1beta1.Worker,
	nodeAgentImage string,
	config *nodeagentconfigv1alpha1.NodeAgentConfiguration,
	clusterCABundle []byte,
	registryCAEnabled bool,
) (
	[]extensionsv1alpha1.Unit,
	[]extensionsv1alpha1.File,
	error,
)

Config returns the init units and the files for the OperatingSystemConfig for bootstrapping the gardener-node-agent. ### !CAUTION! ### Most cloud providers have a limit of 16 KB regarding the user-data that may be sent during VM creation. The result of this operating system config is exactly the user-data that will be sent to the providers. We must not exceed the 16 KB, so be careful when extending/changing anything in here. ### !CAUTION! ###

func GardenadmConfig added in v1.122.0

func GardenadmConfig(sshPublicKey string) ([]extensionsv1alpha1.Unit, []extensionsv1alpha1.File, error)

GardenadmConfig returns the init units and the files for the OperatingSystemConfig for the first control plane node of a self-hosted shoot cluster. ### !CAUTION! ### Most cloud providers have a limit of 16 KB regarding the user-data that may be sent during VM creation. The result of this operating system config is exactly the user-data that will be sent to the providers. We must not exceed the 16 KB, so be careful when extending/changing anything in here. ### !CAUTION! ###

Types

This section is empty.

Jump to

Keyboard shortcuts

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