podsecuritypolicy.yaml 572 B

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