Reformats YAML as Kubernetes does
Clone the repo and run make install
to install it to /usr/local/bin
. Docker is required to build.
Kubernetes itself uses sigs.k8s.io/yaml, which is wrapper for gopkg.in/yaml.v2. sigs.k8s.io/yaml
doesn't support saving map keys order, but gopkg.in/yaml.v2
do. So we use gopkg.in/yaml.v2
here.