Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to disable environment substitution in values files #281

Merged
merged 1 commit into from
Aug 13, 2019

Conversation

medzin
Copy link
Contributor

@medzin medzin commented Aug 13, 2019

Add ability to disable environment substitution in values files.

Resolves #280

@mkubaczyk
Copy link
Collaborator

lgtm +1

utils.go Outdated
@@ -55,7 +55,7 @@ func fromTOML(file string, s *state) (bool, string) {
}
addDefaultHelmRepos(s)
resolvePaths(file, s)
if !noEnvSubst {
if !noEnvSubst || !noEnvValuesSubst {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be && .. the current condition means that if noEnvSubst = false and noEnvValuesSubst = true , environment variables will still be substituted in values files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, you are right - thanks.

utils.go Outdated Show resolved Hide resolved
@medzin
Copy link
Contributor Author

medzin commented Aug 13, 2019

@sami-alajrami fixed!

@sami-alajrami sami-alajrami merged commit a9f0a11 into Praqma:master Aug 13, 2019
mkubaczyk pushed a commit that referenced this pull request Aug 18, 2023
Add ability to disable environment substitution in values files
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.

Ability to disable env substitution only in value files
3 participants