This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update transient & report invalid HNS states
Update transient HNS states and report invalid states if bypassing the admission controller. Add a channel in the HNS reconciler to enqueue HNS for reconciliation. Add HNS reconciler and HC reconciler into each other so that they can enqueue the other resource. Sync the HNS instances in HNS reconciler, instead of syncing the spec.requiredChildren in "syncChildren()" func in HC reconciler. Add integration tests to test all different states. Tested with integration tests ("make test" & "make test HNS=1") and on GKE cluster. To test manually, I added the "enable-hns-reconciler" flag and commented out the webhook "Prevent changing parent of a required child" part, since it uses the "RequiredChildOf" field in the forest. I tested deleting the subnamespace, changing the annotation, change the parent of the subnamespace. They all worked as expected.
- Loading branch information
1 parent
d93c6fd
commit 5c34374
Showing
7 changed files
with
366 additions
and
102 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
Oops, something went wrong.