Skip to content

[tenant-namespace] Fixed missing podSelector - #2

Merged
kfox1111 merged 2 commits into
pnnl-miscscripts:masterfrom
plnordquist-pnnl:fix-net-pol
Dec 16, 2019
Merged

[tenant-namespace] Fixed missing podSelector#2
kfox1111 merged 2 commits into
pnnl-miscscripts:masterfrom
plnordquist-pnnl:fix-net-pol

Conversation

@plnordquist-pnnl

Copy link
Copy Markdown

When I was using Helmfile to install the tenant-namespace chart using Helm 3, validation is turned on and breaks the deployment of the chart due to the missing podSelector. I replicated this issue using helm template . | kubectl apply --validate=true --dry-run=true -f - where the validation errors out on the missing field. The specific section in the docs is here https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#networkpolicyspec-v1-networking-k8s-io. I believe adding this field will simply match all pods in the current namespace for this policy and it seems like the chart ends up deploying the resource this way.

NetworkPolicy requires a podSelector at the root of the spec
@plnordquist-pnnl

Copy link
Copy Markdown
Author

I was able to test this on a cluster and it worked with Helm 3. There is an issue with upgrades for the nginx-ingress that I had trouble working around, see here https://github.com/helm/charts/blob/master/stable/nginx-ingress/README.md#helm-error-when-upgrading-specclusterip-invalid-value-

@kfox1111
kfox1111 merged commit 4abb82e into pnnl-miscscripts:masterDec 16, 2019
@plnordquist-pnnl
plnordquist-pnnl deleted the fix-net-pol branch March 20, 2020 18:28
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@plnordquist-pnnl@kfox1111