You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
impossible to set string values on the command line that look like floats #1558
changed the title [-]impossible to set string values on the commandline that look like floats [/-][+]impossible to set string values on the command line that look like floats [/+]on Nov 16, 2016
@technosophos I ran into this yesterday by trying to: helm install foo --set mlabel="05"
I wanted "05" to be a string and not a float.
My +1 would be for >> Allow explicit casts (--set foo=string(1.23))
I think adding a bunch of different primitives is bloated solution for something that would be rarely needed. Having the ability to reach into the toolbox and using an inline cast would provide a streamlined interface and grant access to the full range of types.
@technosophos I created a pr for this issue #3599, I went with option 3, let me know if its a viable solution. Went with --set-string, but I can easily change it to --setString if thats more appropriate
This is still a real issue that should be resolved. For anyone looking for a workaround, I'm adding letters to any character. In my use case, instead of referencing images based on their commit SHA, I'm adding their branch name. So instead of 5937127 I do master-5937127
Activity
[-]impossible to set string values on the commandline that look like floats [/-][+]impossible to set string values on the command line that look like floats [/+]jchauncey commentedon Nov 16, 2016
Have you tried doing that with no quotes around image.tag? so
--set image.tag=20161115.1databus23 commentedon Nov 16, 2016
@jchauncey yes, see above. That's were it all started.
technosophos commentedon Nov 16, 2016
I particularly "like" how it helpfully converts the presumed float to scientific notation!
@databus23 does it make the most sense to you if we simply added support for quotes? Other options would be:
--set foo=string(1.23))--setInt,--setString, etcaegixx commentedon Nov 16, 2016
Related to #1556
TerraTech commentedon Nov 26, 2016
@technosophos I ran into this yesterday by trying to: helm install foo --set mlabel="05"
I wanted "05" to be a string and not a float.
My +1 would be for >> Allow explicit casts (--set foo=string(1.23))
I think adding a bunch of different primitives is bloated solution for something that would be rarely needed. Having the ability to reach into the toolbox and using an inline cast would provide a streamlined interface and grant access to the full range of types.
peay commentedon Mar 1, 2017
@technosophos can you say a few words about what is the final solution to this issue implemented by #1576? I've been having the same issue in
v2.1.0.technosophos commentedon Mar 1, 2017
@peay we are still tracking the float issue in #1707. There are a few hacky work-arounds there, but we don't have a final solution yet.
peay commentedon Mar 1, 2017
Ah, hadn't found this one. The replace workaround should do the job, thanks!
arturo-c commentedon Mar 7, 2018
@technosophos I created a pr for this issue #3599, I went with option 3, let me know if its a viable solution. Went with
--set-string, but I can easily change it to--setStringif thats more appropriatetodaywasawesome commentedon Jun 20, 2018
This is still a real issue that should be resolved. For anyone looking for a workaround, I'm adding letters to any character. In my use case, instead of referencing images based on their commit SHA, I'm adding their branch name. So instead of
5937127I domaster-5937127