From 42f90f138dc18fc55ce1851dc162c306f590c5b8 Mon Sep 17 00:00:00 2001 From: gabriel-farache Date: Mon, 9 Dec 2024 11:17:11 +0100 Subject: [PATCH] Fix M2K install script Signed-off-by: gabriel-farache --- docs/release-1.2/move2kube/install_m2k.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/release-1.2/move2kube/install_m2k.sh b/docs/release-1.2/move2kube/install_m2k.sh index 12b447f8..2db5ac0f 100755 --- a/docs/release-1.2/move2kube/install_m2k.sh +++ b/docs/release-1.2/move2kube/install_m2k.sh @@ -16,8 +16,16 @@ if [[ -z "${M2K_HELM_REPO}" ]]; then helm repo add orchestrator-workflows https://parodos.dev/serverless-workflows-config fi -TARGET_NS=sonataflow-infra -M2K_INSTANCE_NS=move2kube +if [[ -z "${TARGET_NS}" ]]; then + TARGET_NS=sonataflow-infra + echo 'TARGET_NS env variable not set, using default value: '"${TARGET_NS}" +fi + +if [[ -z "${M2K_INSTANCE_NS}" ]]; then + M2K_INSTANCE_NS=move2kube + echo 'M2K_INSTANCE_NS env variable not set, using default value: '"${M2K_INSTANCE_NS}" +fi + WORKFLOW_NAME=m2k oc patch configmap/config-features \ -n knative-serving \