{{- if .Values.rbac.pspEnabled }} apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: {{ template "promtail.fullname" . }} labels: app: {{ template "promtail.name" . }} chart: {{ template "promtail.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: {{- toYaml .Values.podSecurityPolicy | nindent 2 }} {{- end }}