Reputation: 27021
When should I use
controllerutil SetOwnerReference()
and when
controllerutil SetControllerReference()
?
Afaik if a controller created a resource, the controller should use SetControllerReference(). Only one controller reference must exist for an object.
When to use SetOwnerReference?
What are the corresponding method calls (.Owns()
) in SetupWithManager(), so that Reconcile() gets called when the child resource was changed?
Upvotes: -3
Views: 23