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

Make --set-string flag parse booleans and null as strings #4142

Conversation

ScriptingSquirrel
Copy link

This makes the --set-string flag behave more intuitively. With this change, the values true, false and null are no longer interpreted as booleans but as strings if --set-string is used.

Closes #2848
Relates to #4006

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 29, 2018
@bacongobbler
Copy link
Member

bacongobbler commented May 29, 2018

cc @arturo-c, any thoughts on this? Seems like a sane design decision to me. If users want to coerce truthy or null values into booleans/nil they can still use --set.

Copy link
Member

@bacongobbler bacongobbler left a comment

Choose a reason for hiding this comment

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

I'm going to assume silence from @arturo-c means this is fine. Thanks so much @elritsch for the patch! Really appreciate adding the --set tests you added here as well. 👍

@bacongobbler bacongobbler merged commit daeb458 into helm:master Jun 11, 2018
@ScriptingSquirrel ScriptingSquirrel deleted the set-string-force-string-value-for-booleans-and-null branch June 12, 2018 09:04
bacongobbler pushed a commit that referenced this pull request Nov 12, 2019
bacongobbler pushed a commit that referenced this pull request Nov 12, 2019
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants