feat: add HELM_STORAGE_NAMESPACE support for Flux environments#1
Merged
feat: add HELM_STORAGE_NAMESPACE support for Flux environments#1
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HELM_STORAGE_NAMESPACEpatch from rsafonseca/helm-diff on top of upstream databus23/helm-diff v3.15.6getRelease,getHooks,actionConfig.Init) use the storage namespace whilehelm templatecontinues using the deployment namespaceflux-systembut deployed to other namespacestopfreegames/helm-diff3.15.6-1Test plan
helm plugin installworks from the releaseHELM_STORAGE_NAMESPACEcorrectly redirects metadata lookups in a Flux-managed cluster🤖 Generated with Claude Code