Fix Airflow installation when defaultAirflowTag is numeric 33/13933/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 20 Jul 2023 15:02:19 +0000 (17:02 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 4 Oct 2023 06:25:06 +0000 (08:25 +0200)
Change-Id: Ibfdfdfa6c582648e48fd4d797a8e0e7bf246209c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/install_ngsa.sh

index 4d74df5..c320856 100755 (executable)
@@ -28,7 +28,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
     echo "Updating Helm values file helm/values/airflow-values.yaml to use defaultAirflowRepository: ${DOCKER_REGISTRY_URL}${DOCKER_USER}/airflow"
     sudo sed -i "s#defaultAirflowRepository:.*#defaultAirflowRepository: ${DOCKER_REGISTRY_URL}${DOCKER_USER}/airflow#g" ${OSM_HELM_WORK_DIR}/airflow-values.yaml