1 {{- $pspAvailable := (semverCompare "<1.25-0" (include "common.capabilities.kubeVersion" .)) -}}
2 {{- if and $pspAvailable .Values.psp.create }}
3 apiVersion: policy/v1beta1
4 kind: PodSecurityPolicy
6 name: {{ include "common.names.fullname" . }}
7 namespace: {{ .Release.Namespace | quote }}
8 labels: {{- include "common.labels.standard" . | nindent 4 }}
9 {{- if .Values.commonLabels }}
10 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
12 {{- if .Values.commonAnnotations }}
13 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
20 - 'persistentVolumeClaim'
40 readOnlyRootFilesystem: false