15 lines
412 B
YAML
15 lines
412 B
YAML
{{- if and .Values.monitor.enabled }}
|
|
kind: RoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: {{ include "cf-monitor.rollbackFullname" . }}
|
|
labels: {{- include "cf-monitor.labels" . | nindent 4 }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ include "cf-monitor.rollbackFullname" .}}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: cluster-admin
|
|
{{- end }}
|