IsController: true
From above, you could see there is IsController: true
set. The documentation says: IsController if set will only look at the first OwnerReference with Controller: true.
Now, Let's take a look at what we have under cluster object:
If we have IsController: true
set in our &handler.EnqueueRequestForOwner
. That means we are going to enqueue the name and namespace of ManagedCluster test-guest-cluster-2
that is becuase it is the first ownerRefernce which has controller: true
. [To be verified: If no ownerReferences have controller:true, or only the last one has it. What will happen ?]
Last updated