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 missing support for float64 and several other value types #6

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

kke
Copy link
Collaborator

@kke kke commented Nov 12, 2024

Missing float support was noticed in k0sproject/k0sctl#785

YAMLs could also contain []byte via !!binary f00f00. Some other types like time.Time are possible but when decoding into a plain map, they will be strings.

Fixes #5
Closes #4 (I totally missed a PR that was submitted to fix the same problem.)

@kke kke added bug Something isn't working enhancement New feature or request labels Nov 12, 2024
@kke kke requested a review from twz123 November 12, 2024 08:31
@kke kke changed the title Add missing support for float values Add missing support for float64 and several other value types Nov 12, 2024
@kke kke requested a review from twz123 November 12, 2024 09:06
@kke kke force-pushed the support-floats branch 3 times, most recently from c4d2254 to 4cdefe3 Compare November 12, 2024 09:20
kke added 3 commits November 12, 2024 11:20
Signed-off-by: Kimmo Lehto <[email protected]>
Signed-off-by: Kimmo Lehto <[email protected]>
Signed-off-by: Kimmo Lehto <[email protected]>
Signed-off-by: Kimmo Lehto <[email protected]>
They were converted to JSON to drop the dependency on a specific YAML
decoder.

Signed-off-by: Kimmo Lehto <[email protected]>
Signed-off-by: Kimmo Lehto <[email protected]>
@kke kke merged commit 86c725d into main Nov 12, 2024
1 check passed
@kke kke deleted the support-floats branch November 12, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Yaml float values converted to string
2 participants