Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow ChildReconciler to work without owner references
Owner references only work within the same namespace (or cluster scope). Finalizers give us the ability to clean up state in other scopes, where owner references are not valid. ChildReconciler can now opt-out of owner references with SkipOwnerReference, using a child Finalizer implies SkipOwnerReference. Since we can no longer link parent and child resources via the owner reference, the child is tracked explicitly and the OurChild method must be defined and able to uniquely distinguish the child resource that belongs to the parent from other resources of the same kind. Signed-off-by: Scott Andrews <andrewssc@vmware.com>
- Loading branch information
Showing
6 changed files
with
177 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.