Skip to content

Commit

Permalink
Set seccomp profile to RuntimeDefault for csi-driver-node (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimityrmirchev authored Aug 29, 2022
1 parent 281cca7 commit f054477
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
annotations:
seccomp.security.alpha.kubernetes.io/defaultProfileName: 'runtime/default'
seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'runtime/default'
name: {{ include "csi-disk-plugin.extensionsGroup" . }}.kube-system.csi-disk-plugin-alicloud
spec:
privileged: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ spec:
operator: Exists
- effect: NoExecute
operator: Exists
{{- if semverCompare ">= 1.19" .Capabilities.KubeVersion.GitVersion }}
securityContext:
seccompProfile:
type: RuntimeDefault
{{- end }}
containers:
- name: driver-registrar
image: {{ index .Values.images "csi-node-driver-registrar" }}
Expand Down

0 comments on commit f054477

Please sign in to comment.