Skip to content

Commit

Permalink
Merge pull request #1232 from wzshiming/fix/kind-disable-kube-control…
Browse files Browse the repository at this point in the history
…ler-manager

[kwokctl] Fix disable kube-controller-manager on kind runtime
  • Loading branch information
wzshiming authored Sep 25, 2024
2 parents 0e9df27 + 74ce806 commit b170654
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 @@ -956,9 +956,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 b170654

Please sign in to comment.