Skip to content

Commit eb93d53

Browse files
committed
fix securitycontext
1 parent f0900ed commit eb93d53

File tree

5 files changed

+16
-20
lines changed

5 files changed

+16
-20
lines changed

task-bootc-image-builder.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ spec:
130130
131131
securityContext:
132132
privileged: true
133-
capabilities:
134-
add:
135-
- SETFCAP
136133
volumeMounts:
137134
- mountPath: /var/lib/containers
138135
name: varlibcontainers

task-image-build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ spec:
9595
done
9696
9797
securityContext:
98-
capabilities:
99-
add:
100-
- SETFCAP
10198
privileged: true
10299
volumeMounts:
103100
- mountPath: /var/lib/containers

task-image-sign.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ spec:
6666
done
6767
6868
securityContext:
69-
capabilities:
70-
add:
71-
- SETFCAP
7269
privileged: true
7370
workingDir: $(workspaces.main-workspace.path)
7471
env:

task-kubevirt-image.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ spec:
1616
ADD --chown=107:107 ./output/qcow2/disk.qcow2 /disk/
1717
EOF
1818
securityContext:
19-
capabilities:
20-
add:
21-
- SETFCAP
2219
privileged: true
2320
workingDir: $(workspaces.main-workspace.path)
2421
workspaces:
2522
- name: main-workspace
26-

trigger-template-bootc-image-builder.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,22 @@ spec:
3939
value: true
4040
- name: LOGICALLY_BOUND_IMAGES
4141
value: quay.io/kubealex/tailwind-pos:latest
42-
taskRunTemplate:
43-
podTemplate:
44-
securityContext:
45-
runAsNonRoot: false
46-
runAsUser: 0
47-
fsGroup: 65532
48-
serviceAccountName: default
42+
podTemplate:
43+
securityContext:
44+
runAsNonRoot: false
45+
runAsUser: 0
46+
taskRunSpecs:
47+
- pipelineTaskName: git-clone
48+
podTemplate:
49+
securityContext:
50+
fsGroup: 65532
51+
# taskRunTemplate:
52+
# podTemplate:
53+
# securityContext:
54+
# runAsNonRoot: false
55+
# runAsUser: 0
56+
# fsGroup: 65532
57+
# serviceAccountName: default
4958
workspaces:
5059
- name: main-workspace
5160
volumeClaimTemplate:

0 commit comments

Comments
 (0)