Use a render_example prop in bundles.yml to decide if we render example
This commit is contained in:
parent
917f5bdd75
commit
22f70299a6
2
ctctl
2
ctctl
|
@ -664,7 +664,7 @@ ctctl_render_templates(){
|
||||||
# And now delete the merged config
|
# And now delete the merged config
|
||||||
rm -f ${CTCTL_BUNDLE_CONFIG}
|
rm -f ${CTCTL_BUNDLE_CONFIG}
|
||||||
|
|
||||||
if [ -n "${CTCTL_RENDER_EXAMPLE}" -a "${CTCTL_RENDER_EXAMPLE}" = "true" ]; then
|
if [ "$(echo ${BUNDLE} | jq -r '.render_example // "false"')" = "true" ]; then
|
||||||
echo "Rendering example job with bundle variables only"
|
echo "Rendering example job with bundle variables only"
|
||||||
|
|
||||||
I=0
|
I=0
|
||||||
|
|
|
@ -25,7 +25,3 @@
|
||||||
# LOKI_PWD_CMD="vault read -field pwd kv/admin/loki"
|
# LOKI_PWD_CMD="vault read -field pwd kv/admin/loki"
|
||||||
# Regex of tasks to ignore with ctctl loki
|
# Regex of tasks to ignore with ctctl loki
|
||||||
# LOKI_IGNORE_TASKS="connect-proxy-.+|tls-proxy|metrics-proxy|pgbouncer"
|
# LOKI_IGNORE_TASKS="connect-proxy-.+|tls-proxy|metrics-proxy|pgbouncer"
|
||||||
|
|
||||||
# You can render a bundle in the example directory of the bundle itself
|
|
||||||
# using only the default variables
|
|
||||||
# CTCTL_RENDER_EXAMPLE=true
|
|
||||||
|
|
Loading…
Reference in New Issue