Skip to content

fix: honor HELM_IGNORE_RELEASE during cleanup - #862

Open
sean0407 wants to merge 1 commit into
flant:mainfrom
sean0407:codex/flant-addon-operator-748-helm-ignore
Open

sean0407 wants to merge 1 commit into
flant:mainfrom
sean0407:codex/flant-addon-operator-748-helm-ignore

Conversation

@sean0407

Copy link
Copy Markdown

Summary

  • Pass the configured HELM_IGNORE_RELEASE value into the Helm client options created during operator setup.
  • Add a regression test that checks the option is preserved.

Evidence

HELM_IGNORE_RELEASE is loaded into app.HelmIgnoreRelease, and the Helm client already uses helm.Options.HelmIgnoreRelease to exclude the named release. AddonOperator.Setup() omitted that field when constructing helm.Options, so the filter was lost before reaching the client.

Fixes #748.

Checks

  • go test ./pkg/addon-operator -run '^TestHelmOptionsIncludeIgnoredRelease$' -count=1 — passed.
  • go test ./pkg/addon-operator -count=1 — passed.
  • gofmt and git diff --check — passed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HELM_IGNORE_RELEASE is being ignored

1 participant