Skip to content

Commit eb865ea

Browse files
authored
Add volume mount to prow jobs (#1034)
Signed-off-by: Terence <terencelimxp@gmail.com>
1 parent d1807c9 commit eb865ea

File tree

2 files changed

+33
-8
lines changed

2 files changed

+33
-8
lines changed

.prow/config.yaml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,18 @@ presubmits:
152152
requests:
153153
cpu: "6"
154154
memory: "6144Mi"
155+
env:
156+
- name: GOOGLE_APPLICATION_CREDENTIALS
157+
value: /etc/gcloud/service-account.json
158+
volumeMounts:
159+
- mountPath: /etc/gcloud/service-account.json
160+
name: service-account
161+
readOnly: true
162+
subPath: service-account.json
163+
volumes:
164+
- name: service-account
165+
secret:
166+
secretName: feast-service-account
155167
skip_branches:
156168
- ^v0\.(3|4)-branch$
157169

@@ -186,14 +198,26 @@ presubmits:
186198
always_run: true
187199
spec:
188200
containers:
189-
- image: maven:3.6-jdk-11
190-
command: ["infra/scripts/test-end-to-end-redis-cluster.sh"]
191-
resources:
192-
requests:
193-
cpu: "6"
194-
memory: "6144Mi"
201+
- image: maven:3.6-jdk-11
202+
command: ["infra/scripts/test-end-to-end-redis-cluster.sh"]
203+
resources:
204+
requests:
205+
cpu: "6"
206+
memory: "6144Mi"
207+
env:
208+
- name: GOOGLE_APPLICATION_CREDENTIALS
209+
value: /etc/gcloud/service-account.json
210+
volumeMounts:
211+
- mountPath: /etc/gcloud/service-account.json
212+
name: service-account
213+
readOnly: true
214+
subPath: service-account.json
215+
volumes:
216+
- name: service-account
217+
secret:
218+
secretName: feast-service-account
195219
skip_branches:
196-
- ^v0\.(3|4)-branch$
220+
- ^v0\.(3|4)-branch$
197221

198222
- name: test-end-to-end-java-8
199223
decorate: true

infra/scripts/test-end-to-end-redis-cluster.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44
set -o pipefail
55

6-
test -z ${GOOGLE_APPLICATION_CREDENTIALS} && GOOGLE_APPLICATION_CREDENTIALS="/etc/service-account/service-account.json"
6+
test -z ${GOOGLE_APPLICATION_CREDENTIALS} && GOOGLE_APPLICATION_CREDENTIALS="/etc/gcloud/service-account.json"
77
test -z ${SKIP_BUILD_JARS} && SKIP_BUILD_JARS="false"
88
test -z ${GOOGLE_CLOUD_PROJECT} && GOOGLE_CLOUD_PROJECT="kf-feast"
99
test -z ${TEMP_BUCKET} && TEMP_BUCKET="feast-templocation-kf-feast"
@@ -30,6 +30,7 @@ This script will run end-to-end tests for Feast Core and Online Serving.
3030
source ${SCRIPTS_DIR}/setup-common-functions.sh
3131

3232
install_test_tools
33+
install_gcloud_sdk
3334
install_and_start_local_redis_cluster
3435
install_and_start_local_postgres
3536
install_and_start_local_zookeeper_and_kafka

0 commit comments

Comments
 (0)