rancher-partner-charts/charts/codefresh/cf-runtime/0.1.401/templates/monitor/rollback-role-binding.monit...

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 }}