Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudConfigDownloaderCleaner ¶
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 ¶
func (c *CloudConfigDownloaderCleaner) Start(ctx context.Context) error
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).