Skip to content

yaml vs json for the kubernetes patch #303

Answered by diafour
adrian-thurston asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! There is no "normal" way, just use what suits your needs. We use mikefarah/yq utility to convert between JSON and YAML. You can install it in your Dockerfile (we do it in deckhouse).

Also, I see the problem with an "object" field for "Create" patches. I think we should allow string with YAML definition in this field for JSON patches.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@diafour
Comment options

Answer selected by adrian-thurston
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants