blob: 9c18ba11692e5c8ee0c0d4a50de34dd1e9d69b41 [file] [log] [blame]
Giorgi Lekveishvilic9d88a02023-12-07 13:50:37 +04001apiVersion: rbac.authorization.k8s.io/v1
2kind: ClusterRole
3metadata:
Giorgi Lekveishvili5c2c0b92023-12-07 17:35:40 +04004 name: cert-manager-{{ .Values.resolverName }}
Giorgi Lekveishvilic9d88a02023-12-07 13:50:37 +04005rules:
6- apiGroups:
Giorgi Lekveishvili5c2c0b92023-12-07 17:35:40 +04007 - {{ .Values.apiGroupName }}
Giorgi Lekveishvilic9d88a02023-12-07 13:50:37 +04008 resources:
Giorgi Lekveishvili5c2c0b92023-12-07 17:35:40 +04009 - {{ .Values.resolverName }}
Giorgi Lekveishvilic9d88a02023-12-07 13:50:37 +040010 verbs:
11 - "*" # TODO(giolekva): limit
12---
13apiVersion: rbac.authorization.k8s.io/v1
14kind: ClusterRoleBinding
15metadata:
16 name: cert-manager-pcloud-binding
17roleRef:
18 apiGroup: rbac.authorization.k8s.io
19 kind: ClusterRole
Giorgi Lekveishvili5c2c0b92023-12-07 17:35:40 +040020 name: cert-manager-{{ .Values.resolverName }}
Giorgi Lekveishvilic9d88a02023-12-07 13:50:37 +040021subjects:
22- kind: ServiceAccount
23 name: {{ .Values.certManager.name }}
24 namespace: {{ .Values.certManager.namespace }}