-
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-namespace #9
Comments
Comment by yiqigao217 Another thought is that instead of using HNC can add the |
(The Since this label is mainly for the object webhook to decide whether to enforce policy on the namespaces, we may name it as The As for the currently used WDYT @rjbez17 @adrianludwin |
I like this idea. Maybe |
Sorry, I never hit submit last week. Yes, I do agree with this approach. Would we use a mutating WH on the NS object to add the label? Do it in reconciliation later? I assume it will also disallow removing the label/re-add it? |
No, we can do it in the HC reconciler, since we can still get the source-of-truth excluded namespaces from the HNC container args. |
... but we should add a webhook to prevent users from modifying these
labels as well (I think there's another bug about stopping people from
modifying tree labels too).
Ryan, any thoughts on webhooks-enforced vs webhooks-enabled? I'm also
thinking that it's a bit weird that this label only controls _one_ webhook
(the object webhook) so maybe we need a more specific name? Maybe
hnc.x-k8s.io/included-namespace (opposite of the --excluded-namespace
command-line flag)?
…On Mon, May 10, 2021 at 12:29 PM Yiqi Gao ***@***.***> wrote:
Would we use a mutating WH on the NS object to add the label? Do it in
reconciliation later? I assume it will also disallow removing the
label/re-add it?
No, we can do it in the HC reconciler, since we can still get the
source-of-truth excluded namespaces from the HNC container args.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE43PZFCR7J3CX5VVKCLQ7TTNACXRANCNFSM44FQEKEA>
.
|
Yea I was just going to suggest something like |
|
Issue by yiqigao217
Friday Apr 30, 2021 at 16:22 GMT
Originally opened as https://github.com/kubernetes-sigs/multi-tenancy/issues/1503
Consider excluding namespaces with K8s 1.21+ namespace metadata.name label -
See kubernetes/kubernetes#92157 (comment)
The text was updated successfully, but these errors were encountered: