Skip to content

Commit

Permalink
[cert-manager] Fix missing RBAC rules for ClusterRole cert-manager-ca…
Browse files Browse the repository at this point in the history
  • Loading branch information
onock authored and LuckySB committed Jun 29, 2023
1 parent c75f455 commit 2ef2c56
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ rules:
- apiGroups: ["auditregistration.k8s.io"]
resources: ["auditsinks"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["create", "get", "update"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["create", "get", "update"]
---
# Source: cert-manager/templates/rbac.yaml
# Issuer controller role
Expand Down Expand Up @@ -661,7 +667,7 @@ rules:
---
# Source: cert-manager/templates/rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
kind: ClusterRole
metadata:
name: cert-manager:leaderelection
namespace: {{ cert_manager_leader_election_namespace }}
Expand Down Expand Up @@ -739,7 +745,7 @@ subjects:
# grant cert-manager permission to manage the leaderelection configmap in the
# leader election namespace
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
kind: ClusterRoleBinding
metadata:
name: cert-manager:leaderelection
namespace: {{ cert_manager_leader_election_namespace }}
Expand All @@ -751,7 +757,7 @@ metadata:
app.kubernetes.io/version: "{{ cert_manager_version }}"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
kind: ClusterRole
name: cert-manager:leaderelection
subjects:
- apiGroup: ""
Expand Down

0 comments on commit 2ef2c56

Please sign in to comment.