Skip to content

Commit

Permalink
Deploy operator before waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
divolgin committed May 28, 2020
1 parent 20d0073 commit f5ef388
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/kotsadm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ func ensureKotsadm(deployOptions types.DeployOptions, clientset *kubernetes.Clie
return errors.Wrap(err, "failed to ensure api exists")
}

if err := ensureOperator(deployOptions, clientset); err != nil {
return errors.Wrap(err, "failed to ensure operator")
}

log.ChildActionWithSpinner("Waiting for Admin Console to be ready")
if err := waitForKotsadm(&deployOptions, clientset); err != nil {
return errors.Wrap(err, "failed to wait for API")
Expand All @@ -285,10 +289,6 @@ func ensureKotsadm(deployOptions types.DeployOptions, clientset *kubernetes.Clie
}
log.FinishSpinner()

if err := ensureOperator(deployOptions, clientset); err != nil {
return errors.Wrap(err, "failed to ensure operator")
}

return nil
}

Expand Down

0 comments on commit f5ef388

Please sign in to comment.