Commit c2d3e497 authored by Aliaksei Kruk2's avatar Aliaksei Kruk2
Browse files

add debug in cm

parent 6ac279f7
Pipeline #107578 failed with stages
in 7 seconds
......@@ -2,6 +2,12 @@
set -e
if [ "${DEBUG}" == "true" ]
then
echo "DEBUG true"
{ set -x ;} 2> /dev/null # enable output
fi
source ./validate-env.sh "DATA_PARTITION"
source ./validate-env.sh "SCHEMA_URL"
......@@ -49,4 +55,6 @@ else
bootstrap_schema_gcp
fi
{ set -x ;} 2> /dev/null # enable output
touch /tmp/bootstrap_ready
......@@ -5,5 +5,6 @@ ENV_VAR_NAME=$1
if [ "${!ENV_VAR_NAME}" = "" ]
then
echo "Missing environment variable '$ENV_VAR_NAME'. Please provide all variables and try again"
{ set -x ;} 2> /dev/null # enable output back
exit 1
fi
......@@ -11,4 +11,5 @@ data:
SCHEMA_URL: "{{ .Values.data.schema_host }}"
{{- if not .Values.conf.on_prem_enabled }}
AUDIENCES: "{{ .Values.data.google_audiences }}"
{{- end }}
{{- end }}
DEBUG: "{{ .Values.conf.debug }}"
......@@ -15,3 +15,4 @@ conf:
app_name: "schema"
configmap: "schema-config"
on_prem_enabled: false
debug: false
......@@ -18,3 +18,4 @@ conf:
on_prem_enabled: false
postgres_secret_name: "schema-postgres-secret"
rabbitmq_secret_name: "rabbitmq-secret"
debug: false
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment