Skip to content

Commit

Permalink
Replace kube-controller-manager with cloud-controller-manager for pod…
Browse files Browse the repository at this point in the history
… IPAM
  • Loading branch information
damyan committed Dec 4, 2024
1 parent 3a4305d commit 1d0ff67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/webhook/controlplane/ensurer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package controlplane

import (
"context"

"github.com/Masterminds/semver/v3"
"github.com/coreos/go-systemd/v22/unit"
extensionswebhook "github.com/gardener/gardener/extensions/pkg/webhook"
Expand Down Expand Up @@ -133,6 +132,9 @@ func ensureKubeAPIServerCommandLineArgs(c *corev1.Container) {
func ensureKubeControllerManagerCommandLineArgs(c *corev1.Container) {
c.Command = extensionswebhook.EnsureStringWithPrefix(c.Command, "--cloud-provider=", "external")
c.Command = extensionswebhook.EnsureNoStringWithPrefix(c.Command, "--cloud-config=")

// allocate-node-cidrs is a boolean flag and could be enabled by name without an explicit value passed. Therefore, we delete all prefixes (without including "=" in the prefix)
c.Command = extensionswebhook.EnsureNoStringWithPrefix(c.Command, "--allocate-node-cidrs")
}

// EnsureKubeletServiceUnitOptions ensures that the kubelet.service unit options conform to the provider requirements.
Expand Down

0 comments on commit 1d0ff67

Please sign in to comment.