bootstrapper: tie up all dns related services
diff --git a/charts/cert-manager-webhook-pcloud/templates/role.yaml b/charts/cert-manager-webhook-pcloud/templates/role.yaml
index 8671ae4..9c18ba1 100644
--- a/charts/cert-manager-webhook-pcloud/templates/role.yaml
+++ b/charts/cert-manager-webhook-pcloud/templates/role.yaml
@@ -1,12 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
- name: cert-manager-pcloud
+ name: cert-manager-{{ .Values.resolverName }}
rules:
- apiGroups:
- - dodo.cloud
+ - {{ .Values.apiGroupName }}
resources:
- - pcloud-dns-solver
+ - {{ .Values.resolverName }}
verbs:
- "*" # TODO(giolekva): limit
---
@@ -17,7 +17,7 @@
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
- name: cert-manager-pcloud
+ name: cert-manager-{{ .Values.resolverName }}
subjects:
- kind: ServiceAccount
name: {{ .Values.certManager.name }}