This repository has been archived by the owner on Nov 22, 2018. It is now read-only.
ref(*): Use HELMC_HOME instead of HELM_HOME #460
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we be setting the values for the HELMC_HOME and others so that when new charts are created and uses $HELMC_HOME it works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New charts should continue to use
HELM_HOME
. If people start usingHELMC_HOME
in charts, those charts won't work with older / original helm. This is addressed in the updated documentation I have also PR'ed. It ensures both backwards and forwards compatibility.Re: whether we might want to additionally set
HELMC_HOME
, I believe the answer is no. Existing environment variables do get expanded here. This means if someone hasHELMC_HOME
set to a custom value, it will be properly inherited and interpreted by any possible invocation of thehelmc
binary in the generator header. If it is absent, the invocation of thehelmc
binary in the generator header will use the default helmc home dir, just as the initial invocation ofhelmc
(by the user) would have.The only thing we'd gain by setting
HELMC_HOME
is that chart authors would be able to use it for some custom command like the following:And that is precisely the thing we don't want chart authors doing because it will break their chart's compatibility with older / original helm. I feel that if we don't want them doing that, we shouldn't encourage that mistake by unnecessarily injecting a value into the
HELMC_HOME
env var when generators are invoked.