Skip to content

Commit

Permalink
Don't wait for machine-controller if it's not deployed (#392)
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
  • Loading branch information
xmudrii authored and kubermatic-bot committed Apr 30, 2019
1 parent c8770ba commit 21f0d61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/templates/machinecontroller/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ func Ensure(ctx *util.Context) error {

// WaitReady waits for machine-controller and its webhook to became ready
func WaitReady(ctx *util.Context) error {
if !*ctx.Cluster.MachineController.Deploy {
return nil
}

ctx.Logger.Infoln("Waiting for machine-controller to come up…")

// Wait a bit to let scheduler to react
Expand Down

0 comments on commit 21f0d61

Please sign in to comment.