From 0ed92ed04e40a5ed45a749b0f89e4615cf44abbf Mon Sep 17 00:00:00 2001 From: Taehyun Kim Date: Wed, 19 Jun 2019 17:47:27 +0900 Subject: [PATCH] add deletecollection verb (#589) Fixing privileges to execute `patronictl remove`. You could/should have also just used the operator delete cluster flow (remove manifest). It is not really the plan to use patroni inside a pod to remove a existing cluster. --- charts/postgres-operator/templates/clusterrole.yaml | 1 + manifests/operator-service-account-rbac.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/charts/postgres-operator/templates/clusterrole.yaml b/charts/postgres-operator/templates/clusterrole.yaml index 0486d254a..ef421df93 100644 --- a/charts/postgres-operator/templates/clusterrole.yaml +++ b/charts/postgres-operator/templates/clusterrole.yaml @@ -43,6 +43,7 @@ rules: verbs: - create - delete + - deletecollection - get - list - patch diff --git a/manifests/operator-service-account-rbac.yaml b/manifests/operator-service-account-rbac.yaml index 2057c414f..95221f204 100644 --- a/manifests/operator-service-account-rbac.yaml +++ b/manifests/operator-service-account-rbac.yaml @@ -40,6 +40,7 @@ rules: verbs: - create - delete + - deletecollection - get - list - patch