Adds verbs to clusterrole needed for uninstall
In order to uninstall the PostgreSQL Operator the clusterrole needs to be able
to list the following resources: secrets, configmaps, services, pvcs,
serviceaccounts, jobs, pgclusters, pgreplicas, pgpolicies, and pgtasks
@@ -30,6 +30,7 @@ rules:
resources:
- secrets
verbs:
+ - list
- get
- create
- delete
@@ -43,6 +44,7 @@ rules:
- get
- create
- delete
+ - list
- apiGroups:
- ''
resources:
@@ -52,6 +54,7 @@ rules:
- create
- delete
- patch
+ - list
- apiGroups:
- apps
- extensions
@@ -96,6 +99,7 @@ rules:
- jobs
verbs:
- delete
+ - list
- apiGroups:
- crunchydata.com
resources:
@@ -105,6 +109,7 @@ rules:
- pgtasks
verbs:
- delete
+ - list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
