bootstrappers

package
v1.91.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudConfigDownloaderCleaner

type CloudConfigDownloaderCleaner struct {
	Log  logr.Logger
	FS   afero.Afero
	DBus dbus.DBus
}

CloudConfigDownloaderCleaner is a runnable for cleaning up the legacy cloud-config-downloader resources. TODO(rfranzke): Remove this bootstrapper when the UseGardenerNodeAgent feature gate gets removed.

func (*CloudConfigDownloaderCleaner) Start

Start performs the cleanup logic. Note that this function does only delete the following directories/files:

  • /var/lib/cloud-config-downloader
  • /etc/systemd/system/multi-user.target.wants/cloud-config-downloader.service (typically symlinks to /etc/systemd/system/cloud-config-downloader.service

The /etc/systemd/system/cloud-config-downloader.service file already gets removed by cloud-config-downloader itself when migrating to gardener-node-agent because it is no longer part of the original OperatingSystemConfig. Hence, cloud-config-downloader considers it as stale and cleans it up. All this still leaves some artefacts on the nodes (e.g., `systemctl status cloud-config-downloader` and `journalctl -u cloud-config-downloader` still works), however, maybe that's even a benefit in case of operations/ debugging activities. All nodes get rolled/replaced eventually (latest with the next OS/Kubernetes version update), so we leave the final cleanup for then (new nodes will have no traces of cloud-config-downloader whatsoever).

type KubeletBootstrapKubeconfig

type KubeletBootstrapKubeconfig struct {
	Log             logr.Logger
	FS              afero.Afero
	APIServerConfig config.APIServer
}

KubeletBootstrapKubeconfig is a runnable for creating a bootstrap kubeconfig for kubelet.

func (*KubeletBootstrapKubeconfig) Start

Start performs creation of the bootstrap kubeconfig.

Jump to

Keyboard shortcuts

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