-
Notifications
You must be signed in to change notification settings - Fork 323
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
Default to excluding system ns's from injection #726
Conversation
753ce76
to
344428d
Compare
344428d
to
fd27556
Compare
7b8dd6e
to
d63d83b
Compare
I think the tests are failing because they're not using the actual chart changes in this PR. |
kube-system is excluded because it's unlikely users will want to provision Connect pods in that namespace and also because we don't want to block pods being provisioned there if our webhook injector is down. local-path-storage is excluded because this ns is used by kind to provision PVCs and if ACLs are enabled then the install gets into a deadlock where: - PVC can't be provisioned because Kind needs to create a Pod - Pod can't be created because injector webhook needs to be up - injector webhook can't come up until its got an ACL token - ACL token can't be provisioned because Consul server isn't up - Consul server can't be started because it doesn't have a PVC NOTE: This matching is only supported in Kube 1.21+ where they've added these labels to namespaces automatically now.
d63d83b
to
c3ad2f5
Compare
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.
🦊
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.
Sorry for missing this earlier. looks great, and the explanation for the deadlock was very helpful context.
kube-system is excluded because it's unlikely users will want to
provision Connect pods in that namespace and also because we don't want
to block pods being provisioned there if our webhook injector is down.
local-path-storage is excluded because this ns is used by kind to
provision PVCs and if ACLs are enabled then the install gets into a
deadlock where:
NOTE: This matching is only supported in Kube 1.21+ where they've added
these labels to namespaces automatically now.
Should fix #715
How I've tested this PR:
How I expect reviewers to test this PR:
Checklist: