Skip to content

Commit

Permalink
cmd/openshift-install/create: Log progressing messages
Browse files Browse the repository at this point in the history
Like:

  Working towards 4.0.0-0.alpha-2019-03-18-091023: 64% complete

These seem to advance slowly, but having slowly-changing information
about progress is better than having no information ;).  And with this
change, we will pass along more detailed progress information if/when
the cluster-version operator adds it.
  • Loading branch information
wking committed Mar 18, 2019
1 parent 660f2bb commit fd1349c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/openshift-install/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ func waitForInitializedCluster(ctx context.Context, config *rest.Config) error {
cov1helpers.FindStatusCondition(cv.Status.Conditions, configv1.OperatorFailing).Message)
return false, nil
}
if cov1helpers.IsStatusConditionTrue(cv.Status.Conditions, configv1.OperatorProgressing) {
logrus.Debugf("Still waiting for the cluster to initialize: %v",
cov1helpers.FindStatusCondition(cv.Status.Conditions, configv1.OperatorProgressing).Message)
return false, nil
}
}
logrus.Debug("Still waiting for the cluster to initialize...")
return false, nil
Expand Down

0 comments on commit fd1349c

Please sign in to comment.