|
|
|
@ -20,6 +20,8 @@ rm -rf manifests |
|
|
|
|
mkdir -p manifests/setup |
|
|
|
|
|
|
|
|
|
# optional, but we would like to generate yaml, not json |
|
|
|
|
$JSONNET_BIN -J vendor -m manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | $(go env GOPATH)/bin/gojsontoyaml > {}.yaml; rm -f {}' -- {} |
|
|
|
|
for file in $(find manifests -type f ! -name '*.yaml'); do |
|
|
|
|
cat "$file" | $(go env GOPATH)/bin/gojsontoyaml > "$file.yaml" && rm -f "$file" |
|
|
|
|
done |
|
|
|
|
# Clean-up json files from manifests dir |
|
|
|
|
find manifests -type f ! -name '*.yaml' -delete |
|
|
|
|
find manifests -type f ! -name '*.yaml' -delete |
|
|
|
|