From 189da15fbdbadee49284dfebce1e1556a6135da1 Mon Sep 17 00:00:00 2001 From: rtsp Date: Sat, 15 Jan 2022 13:48:34 +0700 Subject: [PATCH] cert-manager: Fix incorrect leader election namespace lead to insufficient permission --- .../cert_manager/templates/cert-manager.yml.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/kubernetes-apps/ingress_controller/cert_manager/templates/cert-manager.yml.j2 b/roles/kubernetes-apps/ingress_controller/cert_manager/templates/cert-manager.yml.j2 index 23b3ea11838..62930d5dd06 100644 --- a/roles/kubernetes-apps/ingress_controller/cert_manager/templates/cert-manager.yml.j2 +++ b/roles/kubernetes-apps/ingress_controller/cert_manager/templates/cert-manager.yml.j2 @@ -630,7 +630,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: cert-manager-cainjector:leaderelection - namespace: {{ cert_manager_namespace }} + namespace: {{ cert_manager_leader_election_namespace }} labels: app: cainjector app.kubernetes.io/name: cainjector @@ -664,7 +664,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: cert-manager:leaderelection - namespace: {{ cert_manager_namespace }} + namespace: {{ cert_manager_leader_election_namespace }} labels: app: cert-manager app.kubernetes.io/name: cert-manager @@ -719,7 +719,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: cert-manager-cainjector:leaderelection - namespace: {{ cert_manager_namespace }} + namespace: {{ cert_manager_leader_election_namespace }} labels: app: cainjector app.kubernetes.io/name: cainjector @@ -742,7 +742,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: cert-manager:leaderelection - namespace: {{ cert_manager_namespace }} + namespace: {{ cert_manager_leader_election_namespace }} labels: app: cert-manager app.kubernetes.io/name: cert-manager