kyaml in k8s yaml definition

As we are moving away from yaml to kyaml. The code snippet here shows the differences and what sort of conversion we are looking at. 



What changed between them

YAMLKYAML
StructureIndentation decides nestingExplicit { } and [ ], so whitespace no longer matters. Look at ports and env sections 
String valuesQuotes are optional and inconsistentAlways double-quoted
KeysQuoted or unquotedUnquoted
CommasNonePresent, including a trailing comma after the last item
HeaderNoneLeading ---, so it can’t be mistaken for broken JSON
CommentsAllowedStill allowed (JSON can’t do this)


 



Comments

Popular posts from this blog

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

llama cpp running it in google colab