Helm Chart app.labels are not applied to all deployed resources #9158
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/rotten
Denotes an issue or PR that has aged beyond stale and will be auto-closed.
What happened?
The Helm Chart value
app.labels
is described as:But it's only applied to
ServiceMonitor
,NetworkPolicy
, andPodDisruptionBudget
What did you expect to happen?
The Labels should get applied to all Deployments, Services, ConfigMaps and arguably even Resources deployed by the Subcharts.
How can we reproduce it (as minimally and precisely as possible)?
Template the Helm Chart with the following values snippet
and look at the resulting manifests.
Anything else we need to know?
An easy fix would be to include
.Values.app.labels
intokubernetes-dashboard.labels
heredashboard/charts/kubernetes-dashboard/templates/_helpers.tpl
Line 49 in ef603b2
and removing the 3 occurrences where
.Values.app.labels
are used directly.If the labels should be propagated to the subcharts (which I think they should) that could be also easily done in
values.yaml
I'd be happy to submit a PR for this if you agree with the solution.
Thank you in advance
What browsers are you seeing the problem on?
No response
Kubernetes Dashboard version
7.5.0
Kubernetes version
any
Dev environment
No response
The text was updated successfully, but these errors were encountered: