Documentation
¶
Index ¶
Constants ¶
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" )
const PathInitScript = nodeagentconfigv1alpha1.BaseDir + "/init.sh"
PathInitScript is the path to the init script.
Variables ¶
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, ) ( []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(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.