From 8e8e7803ee57efeabd4c07887dfe7d2ace27a1fb Mon Sep 17 00:00:00 2001 From: treydock Date: Tue, 29 Mar 2022 04:39:11 -0400 Subject: [PATCH] add missing namespace to role and rolebinding (#3389) (#3429) (#3485) Signed-off-by: Dominik Ruf Co-authored-by: treydock Signed-off-by: Trey Dockendorf Co-authored-by: Dominik Ruf Co-authored-by: shuting --- charts/kyverno/templates/role.yaml | 1 + charts/kyverno/templates/rolebinding.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/charts/kyverno/templates/role.yaml b/charts/kyverno/templates/role.yaml index b081c3fd8b..9ae4fe12f5 100644 --- a/charts/kyverno/templates/role.yaml +++ b/charts/kyverno/templates/role.yaml @@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ template "kyverno.fullname" . }}:leaderelection + namespace: {{ template "kyverno.namespace" . }} labels: {{ include "kyverno.labels" . | nindent 4 }} app: kyverno rules: diff --git a/charts/kyverno/templates/rolebinding.yaml b/charts/kyverno/templates/rolebinding.yaml index ac52965d66..9f57ef2de9 100644 --- a/charts/kyverno/templates/rolebinding.yaml +++ b/charts/kyverno/templates/rolebinding.yaml @@ -3,6 +3,7 @@ kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ template "kyverno.fullname" . }}:leaderelection + namespace: {{ template "kyverno.namespace" . }} labels: {{ include "kyverno.labels" . | nindent 4 }} app: kyverno roleRef: