Commit 29fc2f4
helm: fix domainLabels empty array handling in template
The template check for domainLabels evaluates empty arrays as truthy,
causing an invalid --domainlabels= flag to be generated. Fix by
checking that the array is both defined and non-empty before generating
the flag.
Keep domainLabels: [] in values.yaml for better user experience -
users can uncomment example values without needing to add the array
syntax back.
Signed-off-by: KeshavSoni2511 <keshavsoni2511@gmail.com>
(cherry picked from commit 057d55b)1 parent ad473d3 commit 29fc2f4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments