Commit da93795
Switch Hypervisor from ControllerReference to OwnerReference
ControllerReference is 'for reconciling the owner object on changes to
controlled (with a Watch + EnqueueRequestForOwner)'.
Since we do not want to reconcile the node on changes to the hypervisor,
we are fine with OwnerReference.
The WithBlockOwnerDeletion ensures that the node is only
deleted, when the hypervisor resource also has been deleted.
For now, it is only avoiding a theoretical race conditition of the
node coming back before the hypervisor has been removed,
and annotations / labels not getting propagated.
It also sets the stage for moving the finalizer out of the node,
and doing that on the hypervisor resource instead.1 parent 74a5805 commit da93795
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | 183 | | |
185 | 184 | | |
186 | 185 | | |
0 commit comments