github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/production/helm/promtail/templates/podsecuritypolicy.yaml (about)

     1  {{- if .Values.rbac.pspEnabled }}
     2  apiVersion: policy/v1beta1
     3  kind: PodSecurityPolicy
     4  metadata:
     5    name: {{ template "promtail.fullname" . }}
     6    labels:
     7      app: {{ template "promtail.name" . }}
     8      chart: {{ template "promtail.chart" . }}
     9      heritage: {{ .Release.Service }}
    10      release: {{ .Release.Name }}
    11  spec:
    12    {{- toYaml .Values.podSecurityPolicy | nindent 2 }}
    13  {{- end }}