Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The default meaning of the Owns() method in the controller-runtime controller is to only trigger reconciles on owner references where we have the 'controller' flag set. We have never set the 'controller' flag on the networkData Secret used in both the BareMetalHost and PreprovisioningImage controllers. Since 8550d61 we no longer set the 'controller' flag on our owner references for Secrets either, in order to allow the same BMC Secret to be shared amongst multiple hosts. In each of these case we were either never or no longer triggering a reconcile when the Secret changed. Add the MatchEveryOwner option to ensure that we still trigger a reconcile even when the 'controller' flag is not set in the owner reference.
- Loading branch information