2019-11-05 00:17:25 +00:00
|
|
|
{{- if .Values.controller.clusterAdminAccess.enabled }}
|
2019-02-13 22:22:11 +00:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
2019-11-05 00:17:25 +00:00
|
|
|
name: {{ template "argo-cd.controller.fullname" . }}
|
2019-02-13 22:22:11 +00:00
|
|
|
labels:
|
2019-11-05 00:17:25 +00:00
|
|
|
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.controller.name }}
|
2019-02-13 22:22:11 +00:00
|
|
|
helm.sh/chart: {{ include "argo-cd.chart" . }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
2019-11-05 22:47:56 +00:00
|
|
|
app.kubernetes.io/part-of: argocd
|
2019-11-05 00:17:25 +00:00
|
|
|
app.kubernetes.io/component: {{ .Values.controller.name }}
|
2019-02-13 22:22:11 +00:00
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
2019-11-05 00:17:25 +00:00
|
|
|
name: {{ template "argo-cd.controller.fullname" . }}
|
2019-02-13 22:22:11 +00:00
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
2019-11-05 00:17:25 +00:00
|
|
|
name: {{ template "argo-cd.controllerServiceAccountName" . }}
|
2019-02-13 22:22:11 +00:00
|
|
|
namespace: {{ .Release.Namespace }}
|
2019-11-05 00:17:25 +00:00
|
|
|
{{- end }}
|