15 lines
475 B
YAML
15 lines
475 B
YAML
{{- if .Values.podSecurityPolicy.create -}}
|
|
{{- $fullName := include "logstash.fullname" . -}}
|
|
apiVersion: policy/v1beta1
|
|
kind: PodSecurityPolicy
|
|
metadata:
|
|
name: {{ default $fullName .Values.podSecurityPolicy.name | quote }}
|
|
labels:
|
|
app: "{{ template "logstash.fullname" . }}"
|
|
chart: "{{ .Chart.Name }}"
|
|
heritage: {{ .Release.Service | quote }}
|
|
release: {{ .Release.Name | quote }}
|
|
spec:
|
|
{{ toYaml .Values.podSecurityPolicy.spec | indent 2 }}
|
|
{{- end -}}
|