项目作者: giantswarm

项目描述 :
Converts yaml to json for jq and back to yaml
高级语言: Python
项目地址: git://github.com/giantswarm/yaml-jq.git
创建时间: 2017-04-05T18:57:05Z
项目社区:https://github.com/giantswarm/yaml-jq

开源协议:Apache License 2.0

下载


yaml-jq

  1. docker build -t giantswarm/yaml-jq .
  1. cat example/kube-apiserver.yaml \
  2. | docker run -i giantswarm/yaml-jq '
  3. .spec.containers[0].volumeMounts
  4. |= .+ [{"mountPath": "/var/log/kubernetes", "name": "audit"}] |
  5. .spec.volumes
  6. |= .+ [{"hostPath": {"path": "/var/log/kubernetes"}, "name": "audit"}]'