Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pkg/pipelines/tekton/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
default: "1001"
- name: GROUP_ID
description: The group ID of the builder image user.
default: "0"
default: "1000"
##############################################################
##### "default" has been changed to "0" for Knative Functions
- name: PLATFORM_DIR
Expand Down Expand Up @@ -108,6 +108,8 @@ spec:
fi
done

chmod -R g+w "$(workspaces.source.path)"

echo "> Parsing additional configuration..."
parsing_flag=""
envs=()
Expand Down Expand Up @@ -187,7 +189,7 @@ spec:
runAsUser: 1001
#################################################################
##### "runAsGroup" has been changed to "0" for Knative Functions
runAsGroup: 0
runAsGroup: 1000

- name: results
image: docker.io/library/bash:5.1.4@sha256:b208215a4655538be652b2769d82e576bc4d0a2bb132144c060efc5be8c3f5d6
Expand Down
2 changes: 1 addition & 1 deletion pkg/pipelines/tekton/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const (
- name: name
value: git-clone
- name: version
value: "0.4"
value: "0.9"
workspaces:
- name: output
workspace: source-workspace`
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipelines/tekton/templates_pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ metadata:
{{end}}
generateName: {{.PipelineRunName}}
spec:
podTemplate:
securityContext:
fsGroup: 1000
params:
- name: gitRepository
value: {{.RepoUrl}}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipelines/tekton/templates_s2i.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ metadata:
{{end}}
generateName: {{.PipelineRunName}}
spec:
podTemplate:
securityContext:
fsGroup: 1000
params:
- name: gitRepository
value: {{.RepoUrl}}
Expand Down