| gio | 404e237 | 2025-07-11 12:50:26 +0400 | [diff] [blame^] | 1 | {{- /* |
| 2 | Copyright Broadcom, Inc. All Rights Reserved. |
| 3 | SPDX-License-Identifier: APACHE-2.0 |
| 4 | */}} |
| 5 | |
| 6 | {{- if and (include "common.capabilities.psp.supported" .) .Values.psp.create }} |
| 7 | apiVersion: policy/v1beta1 |
| 8 | kind: PodSecurityPolicy |
| 9 | metadata: |
| 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 }} |
| 16 | spec: |
| 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 }} |