Commit c354051
fix(helm): make redisMasterHost self-contained so unittest CI passes
The previous version called common.names.fullname via .Subcharts.redis.
That template is only registered when the redis subchart is built into
charts/, but `helm unittest` (CI) renders the parent chart without
dependencies — so every test that renders deployment.yaml failed with
`no template "common.names.fullname"`.
Re-implement the subchart's fullname algorithm inline (pinned to
redis-16.11.2's common library): fullnameOverride wins, else
{release}-{nameOverride|"redis"} with the "release name contains redis"
collapse and trunc 63. No subchart dependency, identical output —
verified with charts/ removed (CI condition) and against the rendered
master Service name.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent c659b7b commit c354051
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | | - | |
265 | | - | |
| 263 | + | |
| 264 | + | |
266 | 265 | | |
267 | 266 | | |
268 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
269 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
270 | 278 | | |
271 | | - | |
| 279 | + | |
272 | 280 | | |
273 | 281 | | |
274 | 282 | | |
| |||
0 commit comments