From ca52992a70433bb77090e24f662dd661d9be67fc Mon Sep 17 00:00:00 2001 From: Quan Pham Date: Tue, 30 Jan 2024 11:14:26 -0500 Subject: [PATCH] ci/microshift.sh: Add cmd to create service account with cluster-admin role --- ci/microshift.sh | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/ci/microshift.sh b/ci/microshift.sh index c423f19..ef9cc1d 100755 --- a/ci/microshift.sh +++ b/ci/microshift.sh @@ -51,19 +51,5 @@ while ! oc get route -A; do done echo "::endgroup::" -# Install OpenShift Account Management -git clone "${ACCT_MGT_REPOSITORY}" "$test_dir/openshift-acct-mgt" -git -C "$test_dir/openshift-acct-mgt" config advice.detachedHead false -git -C "$test_dir/openshift-acct-mgt" checkout "$ACCT_MGT_VERSION" - -echo "::group::Build openshift-acct-mgt image" -sudo docker build "$test_dir/openshift-acct-mgt" -t "127.0.0.1:${registry_port}/cci-moc/openshift-acct-mgt:latest" -sudo docker push "127.0.0.1:${registry_port}/cci-moc/openshift-acct-mgt:latest" -echo "::endgroup::" - -echo "::group::Deploy openshift-acct-mgt" -oc apply -k "$test_dir/openshift-acct-mgt/k8s/overlays/crc" -oc wait -n onboarding --for=condition=available --timeout=800s deployment/onboarding -echo "::endgroup::" - -sleep 60 +oc create sa coldfront +oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:default:coldfront