Skip to content

Conversation

@plnordquist
Copy link

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
Copy link
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:master Dec 16, 2019
@plnordquist plnordquist deleted the fix-net-pol branch March 20, 2020 18:28
Sign up for free to 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