diff --git a/charts/mta-v7.x/install-mta-v7.sh b/charts/mta-v7.x/install-mta-v7.sh deleted file mode 100644 index 568e552a..00000000 --- a/charts/mta-v7.x/install-mta-v7.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -TARGET_NS=sonataflow-infra - -if [[ -z "${MTA_HELM_REPO}" ]]; then - MTA_HELM_REPO=orchestrator-workflows/mta-v7 - echo "MTA_HELM_REPO not set, using default helm mta v7 helm repository ${MTA_HELM_REPO}" - helm repo add orchestrator-workflows https://parodos.dev/serverless-workflows-config -fi - -helm install mta ${MTA_HELM_REPO} -n ${TARGET_NS} -WORKFLOW_NAME=mta-analysis-v7 -oc -n ${TARGET_NS} patch secret "${WORKFLOW_NAME}-creds" --type merge -p '{"data": { "NOTIFICATIONS_BEARER_TOKEN": "'$(oc get secrets -n rhdh-operator backstage-backend-auth-secret -o go-template='{{ .data.BACKEND_SECRET }}')'"}}' -while [[ $retry_count -lt 5 ]]; do - oc -n openshift-mta get route mta && break || sleep 60 - retry_count=$((retry_count + 1)) -done -MTA_ROUTE=$(oc -n openshift-mta get route mta -o yaml | yq -r .spec.host) -oc -n ${TARGET_NS} patch sonataflow mta-analysis-v7 --type merge -p '{"spec": { "podTemplate": { "container": { "env": [{"name": "MTA_URL", "value": "https://'${MTA_ROUTE}'"}]}}}}' \ No newline at end of file