1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00

Run jib-gradle as root

This will fix the issue of task not
working on OpenShift as it needs root access and
by default on OpenShift pod run as nonroot

Fix #198

(cherry picked from commit 46bdfaf5aa)
This commit is contained in:
Piyush Garg 2020-03-06 23:58:26 +05:30 committed by tekton-robot
parent 2c3c81f712
commit f7e9510582

View File

@ -59,6 +59,8 @@ spec:
- name: $(params.CACHE)
mountPath: /tekton/home/.cache
subPath: jib-cache
securityContext:
runAsUser: 0
volumes:
- name: empty-dir-volume