File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 7676 make deploy -e IMG="${IMG}" -e ENV="e2e"
7777 kubectl wait --timeout=120s --for=condition=Available=true deployment -n openshift-operators codeflare-operator-manager
7878
79+ - name : Add user to KinD
80+ uses : ./common/github-actions/kind-add-user
81+ with :
82+ user-name : test-user
83+
84+ - name : Configure RBAC for test user to use namespaced admin role
85+ run : |
86+ kubectl create clusterrolebinding test-user-namespaced-admin --clusterrole=admin --user=test-user
87+
88+ - name : Switch to test-user for test execution
89+ run : kubectl config use-context test-user
90+
7991 - name : Run e2e tests
8092 run : |
8193 export CODEFLARE_TEST_TIMEOUT_SHORT=3m
@@ -88,6 +100,10 @@ jobs:
88100 set -euo pipefail
89101 go test -timeout 60m -v -skip "^Test.*Cpu$" ./test/e2e -json 2>&1 | tee ${CODEFLARE_TEST_OUTPUT_DIR}/gotest.log | gotestfmt
90102
103+ - name : Switch to kind-cluster context to print logs
104+ if : always() && steps.deploy.outcome == 'success'
105+ run : kubectl config use-context kind-cluster
106+
91107 - name : Print CodeFlare operator logs
92108 if : always() && steps.deploy.outcome == 'success'
93109 run : |
You can’t perform that action at this time.
0 commit comments