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
Regression for numeric Value type in Helm v2.15 breaking templates #6708
Activity
bacongobbler commentedon Oct 19, 2019
CC'ing @icanhazbroccoli as it looks like #6010 caused a regression. Perhaps we need to update
intand other functions to acceptjson.Number?osdrv commentedon Oct 19, 2019
@bacongobbler indeed, it's a miss from my side. Mind if I start working on a fix?
bacongobbler commentedon Oct 19, 2019
Yes please.
Fixing regression for numeric values refs helm#6708
Fixing regression for numeric values refs helm#6708
Stono commentedon Oct 20, 2019
Was just going to report this too!
Fixing regression for numeric values refs helm#6708
Fixing regression for numeric values refs helm#6708
Fixing regression for numeric values refs helm#6708
Fixing regression for numeric values refs helm#6708
Downgrade helm because of helm/helm#6708
Downgrade helm because of helm/helm#6708
17 remaining items
chartutil.ReadValues unmarshals numbers into json.Number refs helm#1707
chartutil.ReadValues unmarshals numbers into json.Number refs helm#1707
chartutil.ReadValues unmarshals numbers into json.Number refs helm#1707
rgl commentedon Dec 1, 2019
Oh this problem also exists in helm 3:
Happens when installing with:
osdrv commentedon Dec 1, 2019
@rgl this is a slightly different problem, which goes as deep as golang text/template internals. In a nutshell: comparison functions expect operands to come in compatible formats. Once it gets a int-like and float-like argument tuple, it panics. Maybe this ref would be helpful: https://golang.org/src/text/template/funcs.go#L513.
I would suggest using an explicit type casting here (using int and float helpers).
rgl commentedon Dec 1, 2019
@icanhazbroccoli how do I do an explicit type casting from the helm cli?
osdrv commentedon Dec 1, 2019
@rgl either
--set auditLog.level=3.0or it's the templates that have to be modified :-(rgl commentedon Dec 7, 2019
Doing
--set auditLog.level=3.0brakes the rancher installation somehow. Will push for the templates to be changed instead. Thanks for the pointer!chartutil.ReadValues unmarshals numbers into json.Number refs helm#1707
chartutil.ReadValues unmarshals numbers into json.Number refs helm#1707
chartutil.ReadValues unmarshals numbers into json.Number refs helm#1707
chartutil.ReadValues unmarshals numbers into json.Number refs helm#1707
chartutil.ReadValues unmarshals numbers into json.Number refs helm#1707
chartutil.ReadValues unmarshals numbers into json.Number refs helm#1707
[helm] workaround to adress regression for numeric value type in helm…