19 lines
510 B
YAML
19 lines
510 B
YAML
|
{{- if .Values.podSecurityPolicy }}
|
||
|
{{- if .Values.podSecurityPolicy.enabled }}
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: Role
|
||
|
metadata:
|
||
|
name: {{ template "cost-analyzer.fullname" . }}-psp
|
||
|
annotations:
|
||
|
{{- if .Values.podSecurityPolicy.annotations }}
|
||
|
{{ toYaml .Values.podSecurityPolicy.annotations | indent 4 }}
|
||
|
{{- end }}
|
||
|
rules:
|
||
|
- apiGroups: ['extensions']
|
||
|
resources: ['podsecuritypolicies']
|
||
|
verbs: ['use']
|
||
|
resourceNames:
|
||
|
- {{ template "cost-analyzer.fullname" . }}-psp
|
||
|
{{- end }}
|
||
|
{{- end }}
|