blob: 4d06fae3f8b2b08021372f5eaf9dc5eef0cbb90d [file] [log] [blame]
# Role and RoleBinding for gandi-credentials in namespace default
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: cert-manager-webhook-gandi:secret-reader
namespace: cert-manager
rules:
- apiGroups: [""] # indicates the core API group
resources: ["secrets"]
resourceNames: ["gandi-credentials"]
verbs: ["get", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: cert-manager-webhook-gandi:secret-reader
namespace: cert-manager
subjects:
- apiGroup: ""
kind: ServiceAccount
name: cert-manager-webhook-gandi
namespace: cert-manager
roleRef:
kind: Role
name: cert-manager-webhook-gandi:secret-reader
apiGroup: rbac.authorization.k8s.io