apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  labels:
    app.kubernetes.io/name: argocd-application-controller
    app.kubernetes.io/part-of: argocd
    app.kubernetes.io/component: application-controller
  name: ##CRNAME##
rules:
- apiGroups:
  - '*'
  resources:
  - '*'
  verbs:
  - '*'
- nonResourceURLs:
  - '*'
  verbs:
  - '*'
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  labels:
    app.kubernetes.io/name: argocd-application-controller
    app.kubernetes.io/part-of: argocd
    app.kubernetes.io/component: application-controller
  name: ##CRBNAME##
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: ##CRNAME##
subjects:
- kind: ServiceAccount
  name: ##CONTROLLERSANAME##
  namespace: ##NAMESPACE##
- kind: ServiceAccount
  name: ##SERVERSANAME##
  namespace: ##NAMESPACE##
