Skip to content

simple script to quickly convert some yaml into jsonnet

License

Notifications You must be signed in to change notification settings

kubecfg/yaml2jsonnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

yaml2jsonnet

Sometimes you needo craft some jsonnet but you may have some existing example in YAML you may want to use as a starting point.

Jsonnet provides this feature by default and its so simple I'll repeat it here in full in the readme:

jsonnet -e "std.parseYaml(importstr '$1')" | jsonnetfmt -

I packaged this up in a github repo because my colleagues frequently ask how to convert some YAML into Jsonnet so I figured this may need to become more easily discoverable somehow.

About

simple script to quickly convert some yaml into jsonnet

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages