From d21466dbc4d1afe627f8ea7f14c6945832991f8d Mon Sep 17 00:00:00 2001
From: Prasad Krishnan <97734766+prasadkris@users.noreply.github.com>
Date: Wed, 16 Oct 2024 20:48:01 +0530
Subject: [PATCH] update clusterrole.yaml (#2762)

* update clusterrole.yaml
* Update charts/postgres-operator/templates/clusterrole.yaml

---------

Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
---
 charts/postgres-operator/templates/clusterrole.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/charts/postgres-operator/templates/clusterrole.yaml b/charts/postgres-operator/templates/clusterrole.yaml
index d88affa0..1fd066fa 100644
--- a/charts/postgres-operator/templates/clusterrole.yaml
+++ b/charts/postgres-operator/templates/clusterrole.yaml
@@ -140,8 +140,8 @@ rules:
   - delete
   - get
   - list
-{{- if toString .Values.configKubernetes.storage_resize_mode | eq "pvc" }}
   - patch
+{{- if toString .Values.configKubernetes.storage_resize_mode | eq "pvc" }}
   - update
 {{- end }}
  # to read existing PVs. Creation should be done via dynamic provisioning
-- 
GitLab