Skip to content

Commit 8621bb7

Browse files
Merge pull request #1806 from SaschaSchwarze0/sascha-seccomp-securitycontext
Move seccomp profile definition to container securityContext
2 parents a3d5d5d + a557278 commit 8621bb7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

samples/v1alpha1/buildstrategy/buildkit/buildstrategy_buildkit_cr.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ metadata:
66
annotations:
77
# See https://github.com/moby/buildkit/blob/master/docs/rootless.md#about---oci-worker-no-process-sandbox for more information
88
container.apparmor.security.beta.kubernetes.io/step-build-and-push: unconfined
9-
# The usage of seccomp annotation will be deprecate in k8s v1.22.0, see
10-
# https://kubernetes.io/docs/tutorials/clusters/seccomp/#create-a-pod-with-a-seccomp-profile-for-syscall-auditing for more information
11-
container.seccomp.security.alpha.kubernetes.io/step-build-and-push: unconfined
129
spec:
1310
parameters:
1411
- name: build-args
@@ -37,6 +34,8 @@ spec:
3734
add:
3835
- SETGID
3936
- SETUID
37+
seccompProfile:
38+
type: Unconfined
4039
workingDir: $(params.shp-source-root)
4140
env:
4241
- name: DOCKER_CONFIG

samples/v1beta1/buildstrategy/buildkit/buildstrategy_buildkit_cr.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ metadata:
66
annotations:
77
# See https://github.com/moby/buildkit/blob/master/docs/rootless.md#about---oci-worker-no-process-sandbox for more information
88
container.apparmor.security.beta.kubernetes.io/step-build-and-push: unconfined
9-
# The usage of seccomp annotation will be deprecate in k8s v1.22.0, see
10-
# https://kubernetes.io/docs/tutorials/clusters/seccomp/#create-a-pod-with-a-seccomp-profile-for-syscall-auditing for more information
11-
container.seccomp.security.alpha.kubernetes.io/step-build-and-push: unconfined
129
spec:
1310
parameters:
1411
- name: build-args
@@ -45,6 +42,8 @@ spec:
4542
add:
4643
- SETGID
4744
- SETUID
45+
seccompProfile:
46+
type: Unconfined
4847
workingDir: $(params.shp-source-root)
4948
env:
5049
- name: DOCKER_CONFIG

0 commit comments

Comments
 (0)