---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: manager-role
rules:
- apiGroups:
  - cert-manager.io
  resources:
  - certificates
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - ""
  resources:
  - secrets
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - customdomain.apigateway.tidbcloud.com
  resources:
  - customdomainalbs
  verbs:
  - create
  - delete
  - get
  - list
  - patch
  - update
  - watch
- apiGroups:
  - customdomain.apigateway.tidbcloud.com
  resources:
  - customdomainalbs/finalizers
  verbs:
  - update
- apiGroups:
  - customdomain.apigateway.tidbcloud.com
  resources:
  - customdomainalbs/status
  verbs:
  - get
  - patch
  - update
- apiGroups:
  - customdomain.apigateway.tidbcloud.com
  resources:
  - customdomaindeployments
  verbs:
  - create
  - delete
  - get
  - list
  - patch
  - update
  - watch
- apiGroups:
  - customdomain.apigateway.tidbcloud.com
  resources:
  - customdomaindeployments/finalizers
  verbs:
  - update
- apiGroups:
  - customdomain.apigateway.tidbcloud.com
  resources:
  - customdomaindeployments/status
  verbs:
  - get
  - patch
  - update
- apiGroups:
  - customdomain.apigateway.tidbcloud.com
  resources:
  - customdomains
  verbs:
  - create
  - delete
  - get
  - list
  - patch
  - update
  - watch
- apiGroups:
  - customdomain.apigateway.tidbcloud.com
  resources:
  - customdomains/finalizers
  verbs:
  - update
- apiGroups:
  - customdomain.apigateway.tidbcloud.com
  resources:
  - customdomains/status
  verbs:
  - get
  - patch
  - update
- apiGroups:
  - networking.k8s.io
  resources:
  - ingresses
  verbs:
  - create
  - delete
  - get
  - list
  - patch
  - update
  - watch
