@@ -24,7 +24,7 @@ MARKDOWNLINT_CLI2_VERSION = 0.18.1
24
24
DOCKER_CLI ?= docker
25
25
PROMTOOL_CLI ?= promtool
26
26
GOMPLATE_CLI ?= go tool github.com/hairyhenderson/gomplate/v4/cmd/gomplate
27
- GOJSONTOYAML_CLI ?= go tool github.com/brancz/gojsontoyaml
27
+ GOJQ_CLI ?= go tool github.com/itchyny/gojq/cmd/gojq
28
28
EMBEDMD_CLI ?= go tool github.com/campoy/embedmd
29
29
JSONNET_CLI ?= go tool github.com/google/go-jsonnet/cmd/jsonnet
30
30
JB_CLI ?= go tool github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
@@ -152,23 +152,23 @@ mixin: examples/prometheus-alerting-rules/alerts.yaml
152
152
153
153
examples/prometheus-alerting-rules/alerts.yaml : jsonnet $(shell find jsonnet | grep ".libsonnet") scripts/mixin.jsonnet scripts/vendor
154
154
mkdir -p examples/prometheus-alerting-rules
155
- ${JSONNET_CLI} -J scripts/vendor scripts/mixin.jsonnet | ${GOJSONTOYAML_CLI} > examples/prometheus-alerting-rules/alerts.yaml
155
+ ${JSONNET_CLI} -J scripts/vendor scripts/mixin.jsonnet | ${GOJQ_CLI} --yaml-output > examples/prometheus-alerting-rules/alerts.yaml
156
156
157
157
examples : examples/standard examples/autosharding examples/daemonsetsharding mixin
158
158
159
159
examples/standard : jsonnet $(shell find jsonnet | grep ".libsonnet") scripts/standard.jsonnet scripts/vendor
160
160
mkdir -p examples/standard
161
- ${JSONNET_CLI} -J scripts/vendor -m examples/standard --ext-str version=" $( VERSION) " scripts/standard.jsonnet | xargs -I{} sh -c ' cat {} | ${GOJSONTOYAML_CLI} > `echo {} | sed "s/\(.\)\([A-Z]\)/\1-\2/g" | tr "[:upper:]" "[:lower:]"`.yaml' -- {}
161
+ ${JSONNET_CLI} -J scripts/vendor -m examples/standard --ext-str version=" $( VERSION) " scripts/standard.jsonnet | xargs -I{} sh -c ' cat {} | ${GOJQ_CLI} --yaml-output > `echo {} | sed "s/\(.\)\([A-Z]\)/\1-\2/g" | tr "[:upper:]" "[:lower:]"`.yaml' -- {}
162
162
find examples -type f ! -name ' *.yaml' -delete
163
163
164
164
examples/autosharding : jsonnet $(shell find jsonnet | grep ".libsonnet") scripts/autosharding.jsonnet scripts/vendor
165
165
mkdir -p examples/autosharding
166
- ${JSONNET_CLI} -J scripts/vendor -m examples/autosharding --ext-str version=" $( VERSION) " scripts/autosharding.jsonnet | xargs -I{} sh -c ' cat {} | ${GOJSONTOYAML_CLI} > `echo {} | sed "s/\(.\)\([A-Z]\)/\1-\2/g" | tr "[:upper:]" "[:lower:]"`.yaml' -- {}
166
+ ${JSONNET_CLI} -J scripts/vendor -m examples/autosharding --ext-str version=" $( VERSION) " scripts/autosharding.jsonnet | xargs -I{} sh -c ' cat {} | ${GOJQ_CLI} --yaml-output > `echo {} | sed "s/\(.\)\([A-Z]\)/\1-\2/g" | tr "[:upper:]" "[:lower:]"`.yaml' -- {}
167
167
find examples -type f ! -name ' *.yaml' -delete
168
168
169
169
examples/daemonsetsharding : jsonnet $(shell find jsonnet | grep ".libsonnet") scripts/daemonsetsharding.jsonnet scripts/vendor
170
170
mkdir -p examples/daemonsetsharding
171
- ${JSONNET_CLI} -J scripts/vendor -m examples/daemonsetsharding --ext-str version=" $( VERSION) " scripts/daemonsetsharding.jsonnet | xargs -I{} sh -c ' cat {} | ${GOJSONTOYAML_CLI} > `echo {} | sed "s/\(.\)\([A-Z]\)/\1-\2/g" | tr "[:upper:]" "[:lower:]"`.yaml' -- {}
171
+ ${JSONNET_CLI} -J scripts/vendor -m examples/daemonsetsharding --ext-str version=" $( VERSION) " scripts/daemonsetsharding.jsonnet | xargs -I{} sh -c ' cat {} | ${GOJQ_CLI} --yaml-output > `echo {} | sed "s/\(.\)\([A-Z]\)/\1-\2/g" | tr "[:upper:]" "[:lower:]"`.yaml' -- {}
172
172
find examples -type f ! -name ' *.yaml' -delete
173
173
174
174
scripts/vendor : scripts/jsonnetfile.json scripts/jsonnetfile.lock.json
0 commit comments