Skip to content

Commit

Permalink
Merge pull request #415 from honza/wait-for-bootstrap
Browse files Browse the repository at this point in the history
OCPBUGS-33254: Wait for bootstrapping to finish before starting
  • Loading branch information
openshift-merge-bot[bot] committed May 6, 2024
2 parents aae4dcf + 2cef8ad commit b019df5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/provisioning_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ func (r *ProvisioningReconciler) Reconcile(ctx context.Context, req ctrl.Request
"unable to put %q ClusterOperator in Available state", clusterOperatorName)
}

if _, ok := baremetalConfig.Annotations["provisioning.metal3.io/paused"]; ok {
return ctrl.Result{RequeueAfter: time.Minute}, errors.New("provisioning CR paused")
}

// Read container images from Config Map
var containerImages provisioning.Images
if err := provisioning.GetContainerImages(&containerImages, r.ImagesFilename); err != nil {
Expand Down

0 comments on commit b019df5

Please sign in to comment.