Repository navigation
Helm chart: support custom pod labels #4793
damoun
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the feature
Let users add labels to the pods the chart creates, globally and per workload, the same way
podAnnotationsworks today:Why is this feature important?
Network policies select pods by label. A common setup only lets the ingress or gateway reach pods with a specific label, or scopes egress per component. The chart exposes
podAnnotationsbut not labels, so the only way in is a post-render patch on the Deployment. That's fragile, and most Helm users don't know about it.It's opt-in and leaves the defaults unchanged.
Additional context, screenshots, and relevant links
mainyet. I checkedcharts/sure/values.yamlandtemplates/web-deployment.yaml.matchLabels, and per-workload values would win over the global ones:postRendererspatch that adds a label tosure-web.I'm happy to open a PR if the shape looks right.
All reactions