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
Setting large int64 values in values.yaml converts them to float64 #11130
StalebugCategorizes issue or PR as related to a bug.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
This is still an issue, but there are work-arounds for template authors who cannot guarantee the quoting semantics of input YAML. For string values which are sometimes integers, it seems it's necessary to avoid that standard Go template string casting - using toJson or toYaml is one option.
For values with are always integers:
{{ .Values.alwaysInteger | int64 | quote }}
For values which are sometimes integers (Hashes, IDs etc):
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
To everyone who finds this issue, not just the OP:
This is a duplicate of #9362. As stated in that issue, it's a problem that stems from kubernetes-sigs/yaml#45. Also as stated, changing this in helm would require a Helm Improvement Proposal because it's not as straightforward as replacing the yaml library. Give the original issue a look and consider helping write up a HIP. The yaml landscape in go has changed since then, though I don't know if compatibility has gotten any better overall.
Also, feel free to give feedback on the upstream issue, or contribute a fix if you're able.
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
StalebugCategorizes issue or PR as related to a bug.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Activity
bacongobbler commentedon Jul 9, 2022
related: #11045
github-actions commentedon Oct 9, 2022
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
dmekhov commentedon Oct 10, 2022
it's still actual
ryanotella commentedon Oct 21, 2022
This is still an issue, but there are work-arounds for template authors who cannot guarantee the quoting semantics of input YAML. For string values which are sometimes integers, it seems it's necessary to avoid that standard Go template string casting - using
toJsonortoYamlis one option.For values with are always integers:
For values which are sometimes integers (Hashes, IDs etc):
Test
values.yaml
template.yaml
Output
github-actions commentedon Jan 20, 2023
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
schnerring commentedon Jan 20, 2023
unstale
joejulian commentedon Jan 27, 2023
To everyone who finds this issue, not just the OP:
This is a duplicate of #9362. As stated in that issue, it's a problem that stems from kubernetes-sigs/yaml#45. Also as stated, changing this in helm would require a Helm Improvement Proposal because it's not as straightforward as replacing the yaml library. Give the original issue a look and consider helping write up a HIP. The yaml landscape in go has changed since then, though I don't know if compatibility has gotten any better overall.
Also, feel free to give feedback on the upstream issue, or contribute a fix if you're able.
github-actions commentedon Apr 28, 2023
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
homm commentedon Jul 24, 2025
Completed? How convenient 👍