Remove cloud-config and cloud-provider from 1.33 kubelet

This commit is contained in:
Daniel Martin 2025-05-20 16:41:02 -07:00
parent 5a25815125
commit 09507cbcb7
1 changed files with 3 additions and 1 deletions

View File

@ -327,7 +327,9 @@ func (b *KubeletBuilder) buildSystemdEnvironmentFile(ctx context.Context, kubele
// We build this flag differently because it depends on CloudConfig, and to expose it directly
// would be a degree of freedom we don't have (we'd have to write the config to different files)
// We can always add this later if it is needed.
flags += " --cloud-config=" + InTreeCloudConfigFilePath
if b.IsKubernetesLT("1.33") {
flags += " --cloud-config=" + InTreeCloudConfigFilePath
}
if b.UsesSecondaryIP() {
localIP, err := b.GetMetadataLocalIP(ctx)