nodeinit

package
v1.137.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 15 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

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(gardenadmImage, sshPublicKey string) ([]extensionsv1alpha1.Unit, []extensionsv1alpha1.File, error)

GardenadmConfig returns the init units and the files for the OperatingSystemConfig for downloading gardenadm. ### !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