Skip to content

Commit

Permalink
Merge pull request #1233 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1232-to-release-0.6

[release-0.6] [kwokctl] Fix disable kube-controller-manager on kind runtime
  • Loading branch information
k8s-ci-robot authored Sep 25, 2024
2 parents 9b4869a + a7c4053 commit 5a8edbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kwokctl/runtime/kind/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -953,9 +953,9 @@ func (c *Cluster) Up(ctx context.Context) error {

if conf.DisableKubeControllerManager {
defer func() {
err := c.StopComponent(ctx, consts.ComponentKubeScheduler)
err := c.StopComponent(ctx, consts.ComponentKubeControllerManager)
if err != nil {
logger.Error("Failed to disable kube-scheduler", err)
logger.Error("Failed to disable kube-controller-manager", err)
}
}()
}
Expand Down

0 comments on commit 5a8edbc

Please sign in to comment.