{{- if (.Values.global.rbac) -}}
kind: ClusterRoleBinding 
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: drycc:drycc-monitor-telegraf
  labels:
    app: drycc-monitor-telegraf
    heritage: drycc
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: drycc:drycc-monitor-telegraf
subjects:
- kind: ServiceAccount
  name: drycc-monitor-telegraf
  namespace: {{ .Release.Namespace }}
{{- end -}}

