项目作者: giantswarm
项目描述 :
Converts yaml to json for jq and back to yaml
高级语言: Python
项目地址: git://github.com/giantswarm/yaml-jq.git
yaml-jq
docker build -t giantswarm/yaml-jq .
cat example/kube-apiserver.yaml \
| docker run -i giantswarm/yaml-jq '
.spec.containers[0].volumeMounts
|= .+ [{"mountPath": "/var/log/kubernetes", "name": "audit"}] |
.spec.volumes
|= .+ [{"hostPath": {"path": "/var/log/kubernetes"}, "name": "audit"}]'