Skip to content

fix: process Helm deps before --add-images discovery#676

Open
aeltai wants to merge 1 commit into
hauler-dev:mainfrom
aeltai:fix/helm-process-deps-image-discovery
Open

fix: process Helm deps before --add-images discovery#676
aeltai wants to merge 1 commit into
hauler-dev:mainfrom
aeltai:fix/helm-process-deps-image-discovery

Conversation

@aeltai

@aeltai aeltai commented Jul 20, 2026

Copy link
Copy Markdown

Summary

  • Call Helm ProcessDependencies before --add-images template rendering so dependency aliases and conditions match helm template / install behavior
  • Reload a fresh chart copy for that step so --add-dependencies still resolves original dependency names/paths
  • Stop forcing AddImages=true when recursively adding dependencies (parent discovery already covers the processed tree)

Fixes #675

Test plan

  • suse-observability-agent 1.5.10 with minimal values (webhook disabled): discovered images match helm template (no stackstate/container-tools)
  • Same chart with httpHeaderInjectorWebhook.enabled=true: discovers suse-observability/container-tools:... (not stackstate/... defaults)
  • Parent chart with --add-images --add-dependencies: discovers overridden subchart images once; does not attempt un-overridden subchart defaults
  • Existing TestStoreChart_AddImages* tests pass

Call ProcessDependencies before rendering charts for image discovery so
aliased parent value overrides and dependency conditions match helm
template. Stop forcing AddImages when recursively adding dependencies.

Fixes hauler-dev#675

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

[BUG] --add-images ignores parent chart overrides for aliased Helm subcharts

1 participant