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

Use ghodss/yaml for yaml marshaling & unmarshaling #1556

Merged
merged 6 commits into from Dec 13, 2020

Conversation

yciabaud
Copy link
Contributor

@yciabaud yciabaud commented Oct 23, 2020

Following #1555, this uses ghodss/yaml in template function to avoid errors when chaining fromYaml and toJson.

This PR is inspired by helm/helm#2467

Tested working for fixing #1555

Closes #1555

Copy link
Collaborator

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

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

I've finally had time to read this, add tests, and verified how this works. Thanks for the fix @yciabaud!

@mumoshu mumoshu merged commit 54eb73b into roboll:master Dec 13, 2020
@smlx
Copy link

smlx commented Dec 13, 2020

Just wanted to note that there is a maintained fork over here https://github.com/kubernetes-sigs/yaml

@yciabaud yciabaud deleted the fromyaml-tojson branch December 23, 2020 19:25
@yciabaud
Copy link
Contributor Author

Thanks @mumoshu, sorry I was not capable of fixing tests on my own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when using fromYaml | mustToJson in template
3 participants