Commit 931a47a
committed
feat: add commonLabels and podLabels support
Add `commonLabels` and `podLabels` values for injecting custom labels
into chart resources.
- `commonLabels` — merged into `chart.labels`, applied to all resource
metadata (StatefulSet, Service, Ingress, test Jobs)
- `podLabels` — applied to pod template labels alongside chart.labels
(does not affect `spec.selector.matchLabels`)
This is a common pattern in the Helm ecosystem (see metrics-server,
ingress-nginx, cert-manager) that enables operators to apply
organizational labels without forking or wrapping the chart.1 parent e75846c commit 931a47a
3 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
| |||
0 commit comments