kube-prometheus: add info about installing & compiling

This commit is contained in:
Joshua Olson
2018-07-31 14:36:55 -05:00
parent d58ccab5d0
commit 532f546dcf
2 changed files with 49 additions and 12 deletions

View File

@@ -1,4 +1,7 @@
#!/usr/bin/env bash
# This script uses arg $1 (name of *.jsonnet file to use) to generate the manifests/*.yaml files.
set -e
set -x
# only exit with zero if all commands of the pipeline exit successfully
@@ -10,4 +13,3 @@ mkdir manifests
# optional, but we would like to generate yaml, not json
jsonnet -J vendor -m manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml; rm -f {}' -- {}