Skip to content

Commit

Permalink
Keep "cloud-provider" command line argument for k8s 1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
NotTheEvilOne committed Apr 22, 2022
1 parent f5b2c68 commit dd129d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhook/controlplane/ensurer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit dd129d4

Please sign in to comment.