From 72b5a6c488d911c395c6f2186e151336dc7b502c Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Tue, 17 Dec 2024 17:09:34 +0200 Subject: [PATCH] Bug Fix: missing rbac rules in _helpers.tpl Signed-off-by: Itay Grudev --- charts/cloudnative-pg/templates/_helpers.tpl | 6 ++++++ charts/cloudnative-pg/templates/rbac.yaml | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/cloudnative-pg/templates/_helpers.tpl b/charts/cloudnative-pg/templates/_helpers.tpl index 3a649892a..191e745f4 100644 --- a/charts/cloudnative-pg/templates/_helpers.tpl +++ b/charts/cloudnative-pg/templates/_helpers.tpl @@ -196,8 +196,11 @@ namespace scope or clusterwide resources: - backups - clusters + - databases - poolers + - publications - scheduledbackups + - subscriptions verbs: - create - delete @@ -210,7 +213,10 @@ namespace scope or clusterwide - postgresql.cnpg.io resources: - backups/status + - databases/status + - publications/status - scheduledbackups/status + - subscriptions/status verbs: - get - patch diff --git a/charts/cloudnative-pg/templates/rbac.yaml b/charts/cloudnative-pg/templates/rbac.yaml index ba25c5d3f..cf213f352 100644 --- a/charts/cloudnative-pg/templates/rbac.yaml +++ b/charts/cloudnative-pg/templates/rbac.yaml @@ -128,10 +128,10 @@ rules: resources: - backups - clusters - - poolers - - scheduledbackups - databases + - poolers - publications + - scheduledbackups - subscriptions verbs: - get