Commit 423cfbb
committed
fix(api/types): map HelmChartArgs.ReleaseNamespace -> HelmChart.Namespace
SplitHelmParameters goes through makeHelmChartFromHca to translate
the deprecated HelmChartArgs into the current HelmChart type. That
mapping forgot to copy ReleaseNamespace onto Namespace, so kustomiz-
ations that used the deprecated helmChartInflationGenerator field
with releaseNamespace silently rendered every resource into the
default namespace instead of the requested one.
HelmChartArgs is documented as deprecated, but kustomize still
supports it, and the rendering bug is visible: users follow the docs
for releaseNamespace and get a kustomization that emits the wrong
namespace with no warning.
The fix is one line — copy ReleaseNamespace onto Namespace in
makeHelmChartFromHca — plus a regression test under
TestSplitHelmParametersPropagatesReleaseNamespace that pins the
mapping so the bug cannot silently regress.
Fixes #4593
Signed-off-by: Sai Asish Y <say.apm35@gmail.com>1 parent 72b0fd1 commit 423cfbb
2 files changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
151 | 156 | | |
152 | 157 | | |
153 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
0 commit comments