mirror of https://github.com/easzlab/kubeasz.git
19 lines
532 B
YAML
19 lines
532 B
YAML
{{- if .Values.rbac.create }}
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
kind: Role
|
|
metadata:
|
|
name: {{ template "grafana.fullname" . }}
|
|
labels:
|
|
app: {{ template "grafana.name" . }}
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
|
heritage: {{ .Release.Service }}
|
|
release: {{ .Release.Name }}
|
|
{{- if .Values.rbac.pspEnabled }}
|
|
rules:
|
|
- apiGroups: ['extensions']
|
|
resources: ['podsecuritypolicies']
|
|
verbs: ['use']
|
|
resourceNames: [{{ template "grafana.fullname" . }}]
|
|
{{- end }}
|
|
{{- end }}
|