|
58 | 58 | default: "1000"
|
59 | 59 | - name: GROUP_ID
|
60 | 60 | description: The group ID of the builder image user.
|
61 |
| - default: "1000" |
| 61 | + default: "0" |
| 62 | + ############################################################## |
| 63 | + ##### "default" has been changed to "0" for Knative Functions |
62 | 64 | - name: PLATFORM_DIR
|
63 | 65 | description: The name of the platform directory.
|
64 | 66 | default: empty-dir
|
|
87 | 89 | chown -R "$(params.USER_ID):$(params.GROUP_ID)" "$(workspaces.cache.path)"
|
88 | 90 | fi
|
89 | 91 |
|
90 |
| - ############################################ |
91 |
| - # "/emptyDir" has been added for Knative Functions |
| 92 | + ####################################################### |
| 93 | + ##### "/emptyDir" has been added for Knative Functions |
92 | 94 | for path in "/tekton/home" "/layers" "/emptyDir" "$(workspaces.source.path)"; do
|
93 | 95 | echo "> Setting permissions on '$path'..."
|
94 | 96 | chown -R "$(params.USER_ID):$(params.GROUP_ID)" "$path"
|
@@ -143,8 +145,8 @@ spec:
|
143 | 145 | mountPath: /layers
|
144 | 146 | - name: $(params.PLATFORM_DIR)
|
145 | 147 | mountPath: /platform
|
146 |
| - ############################################ |
147 |
| - # "/emptyDir" has been added for Knative Functions |
| 148 | + ######################################################## |
| 149 | + ##### "/emptyDir" has been added for Knative Functions |
148 | 150 | - name: empty-dir
|
149 | 151 | mountPath: /emptyDir
|
150 | 152 |
|
@@ -176,7 +178,9 @@ spec:
|
176 | 178 | mountPath: /platform
|
177 | 179 | securityContext:
|
178 | 180 | runAsUser: 1000
|
179 |
| - runAsGroup: 1000 |
| 181 | + ################################################################# |
| 182 | + ##### "runAsGroup" has been changed to "0" for Knative Functions |
| 183 | + runAsGroup: 0 |
180 | 184 |
|
181 | 185 | - name: results
|
182 | 186 | image: docker.io/library/bash:5.1.4@sha256:b208215a4655538be652b2769d82e576bc4d0a2bb132144c060efc5be8c3f5d6
|
@@ -213,8 +217,8 @@ spec:
|
213 | 217 | volumeMounts:
|
214 | 218 | - name: layers-dir
|
215 | 219 | mountPath: /layers
|
216 |
| - ############################################ |
217 |
| - # "/emptyDir" has been added for Knative Functions |
| 220 | + ######################################################## |
| 221 | + ##### "/emptyDir" has been added for Knative Functions |
218 | 222 | - name: empty-dir
|
219 | 223 | mountPath: /emptyDir
|
220 | 224 |
|
|
0 commit comments