Skip to content

Commit

Permalink
chore: Install RHACM during test
Browse files Browse the repository at this point in the history
  • Loading branch information
nastacio committed Mar 25, 2022
1 parent 82bafc1 commit 09d5195
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/postbuild/calc-settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ do
fi
fi
done
if grep "rhacm" "${branch_delta_output_file}"; then
labels="${labels},rhacm"
fi

infer_rc_release

Expand Down
6 changes: 5 additions & 1 deletion tests/postbuild/gitops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand All @@ -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 \
Expand Down

0 comments on commit 09d5195

Please sign in to comment.