Skip to content

Commit

Permalink
Merge pull request #208 from rabi/watch_provision
Browse files Browse the repository at this point in the history
Watch for owned OpenStackProvisionServer
  • Loading branch information
openshift-merge-bot[bot] authored Sep 20, 2024
2 parents 1717887 + c802cec commit dd8850c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/openstackbaremetalset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (r *OpenStackBaremetalSetReconciler) SetupWithManager(mgr ctrl.Manager) err

return ctrl.NewControllerManagedBy(mgr).
For(&baremetalv1.OpenStackBaremetalSet{}).
Owns(&baremetalv1.OpenStackBaremetalSet{}).
Owns(&baremetalv1.OpenStackProvisionServer{}).
Watches(&metal3v1.BareMetalHost{}, openshiftMachineAPIBareMetalHostsFn).
Complete(r)
}
Expand Down Expand Up @@ -500,7 +500,6 @@ func (r *OpenStackBaremetalSetReconciler) provisionServerCreateOrUpdate(
if err != nil {
return err
}

provisionServer.Spec.OSImage = instance.Spec.OSImage
provisionServer.Spec.OSContainerImageURL = instance.Spec.OSContainerImageURL
provisionServer.Spec.ApacheImageURL = instance.Spec.ApacheImageURL
Expand Down

0 comments on commit dd8850c

Please sign in to comment.