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 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}"
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
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
if ! helm -n osm status airflow 2> /dev/null ; then
# if it does not exist, create secrets and install
if ! helm -n osm status airflow 2> /dev/null ; then
# if it does not exist, create secrets and install
# if it does not exist, install
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
# if it does not exist, install
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
# if it does not exist, install
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
# if it does not exist, install
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update