-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace excluded namespace label with included #36
Conversation
/assign @adrianludwin @rjbez17 the design of this PR is in #9 (comment). The proposed naming of the label are |
911dc57
to
772ede0
Compare
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`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold
/assign @rjbez17
/hold cancel @rjbez17 Please feel free to take a look. FYI I will make the VWH rules on namespaces |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rjbez17, yiqigao217 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Part of #9
Next PR would be updating the label concept doc.
Missing
excluded-namespace
label on system namespaces would break theentire cluster. Instead of always trying hard to make sure the
excluded-namespace
label are set, this PR replaces it with includednamespace concept (
included-namespace
label added by HC reconciler onall namespaces except those listed as excluded in the HNC container
args).
Remove the
excluded-namespace
label. Add theincluded-namespace
label.Update HC reonciler to always set the
included-namespace
label to trueon 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
andmake test-e2e
.