diff --git a/tests/postbuild/calc-settings.sh b/tests/postbuild/calc-settings.sh index fb1774b6..31483376 100755 --- a/tests/postbuild/calc-settings.sh +++ b/tests/postbuild/calc-settings.sh @@ -145,6 +145,9 @@ do fi fi done +if grep "rhacm" "${branch_delta_output_file}"; then + labels="${labels},rhacm" +fi infer_rc_release diff --git a/tests/postbuild/gitops.sh b/tests/postbuild/gitops.sh index 99a1e4e7..9788b3b0 100755 --- a/tests/postbuild/gitops.sh +++ b/tests/postbuild/gitops.sh @@ -362,6 +362,10 @@ EOF fi local app_name="${cp}-app" local cp_result=0 + local app_path="config/argocd-cloudpaks/${cp}" + if [ "${cp}" == "rhacm" ]; then + app_path="config/argocd-rhacm" + fi argocd app create "${app_name}" \ --project default \ --dest-namespace "${GITOPS_NAMESPACE}" \ @@ -370,7 +374,7 @@ EOF --helm-set-string repoURL="${gitops_repo}" \ --helm-set-string serviceaccount.argocd_application_controller="${sa_account}" \ --helm-set-string targetRevision="${gitops_branch}" \ - --path "config/argocd-cloudpaks/${cp}" \ + --path "${app_path}" \ --repo "${gitops_repo}" \ --revision "${gitops_branch}" \ --sync-policy automated \