mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-15 16:56:24 +00:00
- Move prometheus-config-reloader to cmd/ - Refactor Makefile & contrib/kube-prometheus/Makefile - Only execute a target if its dependencies changed - Create empty target file for docker builds - Replace promu with plain static `go build`
10 lines
317 B
Bash
Executable file
10 lines
317 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
rm -rf tmp
|
|
mkdir tmp
|
|
jsonnet -J hack/generate/vendor hack/generate/prometheus-operator-rbac.jsonnet > tmp/po.json
|
|
mapfile -t files < <(jq -r 'keys[]' tmp/po.json)
|
|
for file in "${files[@]}"
|
|
do
|
|
jq -r ".[\"${file}\"]" tmp/po.json | gojsontoyaml > "example/rbac/prometheus-operator/${file}"
|
|
done
|