Skip to content

Commit

Permalink
Move seccomp profile definition to container securityContext
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Schwarze <schwarzs@de.ibm.com>
  • Loading branch information
SaschaSchwarze0 committed Feb 21, 2025
1 parent a3d5d5d commit a557278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ metadata:
annotations:
# See https://github.com/moby/buildkit/blob/master/docs/rootless.md#about---oci-worker-no-process-sandbox for more information
container.apparmor.security.beta.kubernetes.io/step-build-and-push: unconfined
# The usage of seccomp annotation will be deprecate in k8s v1.22.0, see
# https://kubernetes.io/docs/tutorials/clusters/seccomp/#create-a-pod-with-a-seccomp-profile-for-syscall-auditing for more information
container.seccomp.security.alpha.kubernetes.io/step-build-and-push: unconfined
spec:
parameters:
- name: build-args
Expand Down Expand Up @@ -37,6 +34,8 @@ spec:
add:
- SETGID
- SETUID
seccompProfile:
type: Unconfined
workingDir: $(params.shp-source-root)
env:
- name: DOCKER_CONFIG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ metadata:
annotations:
# See https://github.com/moby/buildkit/blob/master/docs/rootless.md#about---oci-worker-no-process-sandbox for more information
container.apparmor.security.beta.kubernetes.io/step-build-and-push: unconfined
# The usage of seccomp annotation will be deprecate in k8s v1.22.0, see
# https://kubernetes.io/docs/tutorials/clusters/seccomp/#create-a-pod-with-a-seccomp-profile-for-syscall-auditing for more information
container.seccomp.security.alpha.kubernetes.io/step-build-and-push: unconfined
spec:
parameters:
- name: build-args
Expand Down Expand Up @@ -45,6 +42,8 @@ spec:
add:
- SETGID
- SETUID
seccompProfile:
type: Unconfined
workingDir: $(params.shp-source-root)
env:
- name: DOCKER_CONFIG
Expand Down

0 comments on commit a557278

Please sign in to comment.