rancher-partner-charts/charts/codefresh/cf-runtime/0.1.401/templates/monitor/rolebinding.monitor.yaml

16 lines
468 B
YAML

{{- if and .Values.monitor.enabled }}
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "cf-monitor.fullname" . }}
labels: {{- include "cf-monitor.labels" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: {{ include "cf-monitor.fullname" . }}
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ include "cf-monitor.fullname" . }}
{{- end }}