File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,17 @@ properties=(
53
53
-Dspark.kubernetes.test.imageRepo=$IMAGE_REPO \
54
54
-Dspark.kubernetes.test.sparkTgz=" $SPARK_TGZ " \
55
55
-Dspark.kubernetes.test.deployMode=cloud \
56
- -Dspark.kubernetes.test.namespace=default \
57
- -Dspark.kubernetes.test.serviceAccountName=default
56
+ -Dspark.kubernetes.test.namespace=spark \
57
+ -Dspark.kubernetes.test.serviceAccountName=spark-sa
58
58
)
59
59
60
+ # Run kubectl commands and create appropriate roles
61
+ kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user pr-kubekins@kubernetes-jenkins-pull.iam.gserviceaccount.com
62
+ kubectl create -f ./dev/spark-rbac.yaml
63
+
60
64
# Run tests.
61
65
echo " Starting test with ${properties[@]} "
62
- build/mvn integration-test " ${properties[@]} "
66
+ build/mvn integration-test " ${properties[@]} " || :
63
67
64
68
# Copy out the junit xml files for consumption by k8s test-infra.
65
69
ls -1 ./target/surefire-reports/* .xml | cat -n | while read n f; do cp " $f " " /workspace/_artifacts/junit_0$n .xml" ; done
You can’t perform that action at this time.
0 commit comments