From dd129d47c1270d628866e525c46146a9c3ff0740 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Fri, 22 Apr 2022 14:07:59 +0200 Subject: [PATCH] Keep "cloud-provider" command line argument for k8s 1.23 --- pkg/webhook/controlplane/ensurer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/webhook/controlplane/ensurer.go b/pkg/webhook/controlplane/ensurer.go index b7f8d439..6688f717 100644 --- a/pkg/webhook/controlplane/ensurer.go +++ b/pkg/webhook/controlplane/ensurer.go @@ -121,7 +121,7 @@ func (e *ensurer) EnsureKubeletServiceUnitOptions(ctx context.Context, gctx gcon } func ensureKubeletCommandLineArgs(command []string, kubeletVersion *semver.Version) []string { - firstUnsupportedVersion := semver.MustParse("v1.23") + firstUnsupportedVersion := semver.MustParse("v1.24") if kubeletVersion.LessThan(firstUnsupportedVersion) { command = extensionswebhook.EnsureStringWithPrefix(command, "--cloud-provider=", "external")