blob: 4d06fae3f8b2b08021372f5eaf9dc5eef0cbb90d [file] [log] [blame]
giolekvaeea069c2021-07-19 18:13:08 +04001# Role and RoleBinding for gandi-credentials in namespace default
2apiVersion: rbac.authorization.k8s.io/v1
3kind: Role
4metadata:
5 name: cert-manager-webhook-gandi:secret-reader
6 namespace: cert-manager
7rules:
8- apiGroups: [""] # indicates the core API group
9 resources: ["secrets"]
10 resourceNames: ["gandi-credentials"]
11 verbs: ["get", "watch"]
12---
13apiVersion: rbac.authorization.k8s.io/v1
14kind: RoleBinding
15metadata:
16 name: cert-manager-webhook-gandi:secret-reader
17 namespace: cert-manager
18subjects:
19 - apiGroup: ""
20 kind: ServiceAccount
21 name: cert-manager-webhook-gandi
22 namespace: cert-manager
23roleRef:
24 kind: Role
25 name: cert-manager-webhook-gandi:secret-reader
26 apiGroup: rbac.authorization.k8s.io