podsecuritypolicy.yaml 475 B

1234567891011121314
  1. {{- if .Values.podSecurityPolicy.create -}}
  2. {{- $fullName := include "logstash.fullname" . -}}
  3. apiVersion: policy/v1beta1
  4. kind: PodSecurityPolicy
  5. metadata:
  6. name: {{ default $fullName .Values.podSecurityPolicy.name | quote }}
  7. labels:
  8. app: "{{ template "logstash.fullname" . }}"
  9. chart: "{{ .Chart.Name }}"
  10. heritage: {{ .Release.Service | quote }}
  11. release: {{ .Release.Name | quote }}
  12. spec:
  13. {{ toYaml .Values.podSecurityPolicy.spec | indent 2 }}
  14. {{- end -}}