blob: b5220026384b1f9b23a83a1db6f8b83c0a1d35fa [file] [log] [blame]
gio404e2372025-07-11 12:50:26 +04001{{- /*
2Copyright Broadcom, Inc. All Rights Reserved.
3SPDX-License-Identifier: APACHE-2.0
4*/}}
5
6{{- if and (include "common.capabilities.psp.supported" .) .Values.psp.create }}
7apiVersion: policy/v1beta1
8kind: PodSecurityPolicy
9metadata:
10 name: {{ include "common.names.fullname" . }}
11 namespace: {{ .Release.Namespace | quote }}
12 labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
13 {{- if .Values.commonAnnotations }}
14 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
15 {{- end }}
16spec:
17 privileged: false
18 volumes:
19 - 'configMap'
20 - 'secret'
21 - 'persistentVolumeClaim'
22 - 'emptyDir'
23 - 'projected'
24 hostNetwork: false
25 hostIPC: false
26 hostPID: false
27 runAsUser:
28 rule: 'RunAsAny'
29 seLinux:
30 rule: 'RunAsAny'
31 supplementalGroups:
32 rule: 'MustRunAs'
33 ranges:
34 - min: 1
35 max: 65535
36 fsGroup:
37 rule: 'MustRunAs'
38 ranges:
39 - min: 1
40 max: 65535
41 readOnlyRootFilesystem: false
42{{- end }}