Skip to content

Commit ca52992

Browse files
committed
ci/microshift.sh: Add cmd to create service account with cluster-admin role
1 parent 5b6634f commit ca52992

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

ci/microshift.sh

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,5 @@ while ! oc get route -A; do
5151
done
5252
echo "::endgroup::"
5353

54-
# Install OpenShift Account Management
55-
git clone "${ACCT_MGT_REPOSITORY}" "$test_dir/openshift-acct-mgt"
56-
git -C "$test_dir/openshift-acct-mgt" config advice.detachedHead false
57-
git -C "$test_dir/openshift-acct-mgt" checkout "$ACCT_MGT_VERSION"
58-
59-
echo "::group::Build openshift-acct-mgt image"
60-
sudo docker build "$test_dir/openshift-acct-mgt" -t "127.0.0.1:${registry_port}/cci-moc/openshift-acct-mgt:latest"
61-
sudo docker push "127.0.0.1:${registry_port}/cci-moc/openshift-acct-mgt:latest"
62-
echo "::endgroup::"
63-
64-
echo "::group::Deploy openshift-acct-mgt"
65-
oc apply -k "$test_dir/openshift-acct-mgt/k8s/overlays/crc"
66-
oc wait -n onboarding --for=condition=available --timeout=800s deployment/onboarding
67-
echo "::endgroup::"
68-
69-
sleep 60
54+
oc create sa coldfront
55+
oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:default:coldfront

0 commit comments

Comments
 (0)