generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace excluded namespace label with included
Part of 9 Next PR would be updating the label concept doc. Missing `excluded-namespace` label on system namespaces would break the entire cluster. Instead of always trying hard to make sure the `excluded-namespace` label are set, this PR replaces it with included namespace concept (`included-namespace` label added by HC reconciler on all namespaces except those listed as excluded in the HNC container args). Remove the `excluded-namespace` label. Add the `included-namespace` label. Update HC reonciler to always set the `included-namespace` label to true on non-excluded namespaces and remove it on excluded namespaces. Update namespace webhook to block adding/updating the new label improperly. Update the Makefile to remove the `excluded-namespace` label setting. Tested by `make test` and `make test-e2e`.
- Loading branch information
1 parent
467d883
commit d11d38e
Showing
8 changed files
with
171 additions
and
118 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
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.