From: garciadeblas Date: Mon, 12 Dec 2022 15:43:46 +0000 (+0100) Subject: Fix bug 2203 to set the airflow tag as string X-Git-Tag: v13.0.1~8 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=056ca018546bbe2e9b019ef966b8fd4d6967d0ab;p=osm%2Fdevops.git Fix bug 2203 to set the airflow tag as string Change-Id: I7e95a0ff844b60730c73e980f87155c95127dc63 Signed-off-by: garciadeblas --- diff --git a/installers/install_ngsa.sh b/installers/install_ngsa.sh index 5d7ad683..b0c2713d 100755 --- a/installers/install_ngsa.sh +++ b/installers/install_ngsa.sh @@ -27,7 +27,7 @@ function install_airflow() { sudo cp ${OSM_DEVOPS}/installers/helm/values/airflow-values.yaml ${OSM_HELM_WORK_DIR} # update airflow-values.yaml to use the right tag echo "Updating Helm values file helm/values/airflow-values.yaml to use defaultAirflowTag: ${OSM_DOCKER_TAG}" - sudo sed -i "s#defaultAirflowTag:.*#defaultAirflowTag: ${OSM_DOCKER_TAG}#g" ${OSM_HELM_WORK_DIR}/airflow-values.yaml + sudo sed -i "s#defaultAirflowTag:.*#defaultAirflowTag: \"${OSM_DOCKER_TAG}\"#g" ${OSM_HELM_WORK_DIR}/airflow-values.yaml if ! helm -n osm status airflow 2> /dev/null ; then # if it does not exist, create secrets and install kubectl -n osm create secret generic airflow-webserver-secret --from-literal="webserver-secret-key=$(python3 -c 'import secrets; print(secrets.token_hex(16))')"