Use a render_example prop in bundles.yml to decide if we render example

This commit is contained in:
Daniel Berteaud 2024-03-08 11:15:39 +01:00
parent 917f5bdd75
commit 22f70299a6
2 changed files with 1 additions and 5 deletions

2
ctctl
View File

@ -664,7 +664,7 @@ ctctl_render_templates(){
# And now delete the merged 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"
I=0

View File

@ -25,7 +25,3 @@
# LOKI_PWD_CMD="vault read -field pwd kv/admin/loki"
# Regex of tasks to ignore with ctctl loki
# 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