Merge pull request #1333 from mxinden/alerting-rule-file-crd

prometheus: Introduce RuleFile Custom Resource Definition
This commit is contained in:
Frederic Branczyk
2018-05-18 17:14:28 +02:00
committed by GitHub
9 changed files with 150 additions and 12 deletions

View File

@@ -4,6 +4,10 @@ set -x
# only exit with zero if all commands of the pipeline exit successfully
set -o pipefail
# Make sure to start with a clean 'manifests' dir
rm -rf manifests
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 $1 | gojsontoyaml > $1.yaml; rm -f $1' -- {}