Skip to content

feat: add HELM_STORAGE_NAMESPACE support for Flux environments#1

Merged
azlev merged 2 commits intomasterfrom
feat/helm-storage-namespace
Apr 28, 2026
Merged

feat: add HELM_STORAGE_NAMESPACE support for Flux environments#1
azlev merged 2 commits intomasterfrom
feat/helm-storage-namespace

Conversation

@azlev
Copy link
Copy Markdown
Collaborator

@azlev azlev commented Apr 27, 2026

Summary

  • Port of the HELM_STORAGE_NAMESPACE patch from rsafonseca/helm-diff on top of upstream databus23/helm-diff v3.15.6
  • When set, release metadata lookups (getRelease, getHooks, actionConfig.Init) use the storage namespace while helm template continues using the deployment namespace
  • Fixes "release: not found" errors in Flux environments where release metadata is stored in flux-system but deployed to other namespaces
  • Install scripts updated to download binaries from topfreegames/helm-diff
  • Plugin version bumped to 3.15.6-1

Test plan

  • CI builds binaries successfully
  • helm plugin install works from the release
  • HELM_STORAGE_NAMESPACE correctly redirects metadata lookups in a Flux-managed cluster

🤖 Generated with Claude Code

Jose Villanova and others added 2 commits April 22, 2026 23:54
When Flux manages Helm releases, release metadata (secrets) is stored
in a different namespace (e.g. flux-system) than the deployment target.
This causes helm get manifest, helm get hooks, and helm get values to
fail with "release: not found" when using the deployment namespace.

Add HELM_STORAGE_NAMESPACE environment variable support. When set,
release metadata lookups (getRelease, getHooks, writeExistingValues,
actionConfig.Init) use the storage namespace while helm template
continues to use the deployment namespace.

If HELM_STORAGE_NAMESPACE is not set, it defaults to HELM_NAMESPACE,
preserving backward compatibility.
Port of azlev/helm-diff HELM_STORAGE_NAMESPACE patch on top of upstream
databus23/helm-diff v3.15.6.

When Flux manages Helm releases, release metadata (secrets) is stored
in a different namespace (e.g. flux-system) than the deployment target.
This causes helm get manifest, helm get hooks, and helm get values to
fail with "release: not found" when using the deployment namespace.

HELM_STORAGE_NAMESPACE env var overrides where release metadata lookups
(getRelease, getHooks, actionConfig.Init) look for release data, while
helm template continues to use the deployment namespace.

Update install scripts to download from topfreegames/helm-diff and
bump plugin version to 3.15.6-1.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@azlev azlev merged commit 3f97874 into master Apr 28, 2026
1 check passed
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.

1 participant