We are currently trying to migrate to the Barman Cloud Plugin from the Built-in CloudNativePG Backup on our OKD cluster.
When recreating a Cluster and trying to do a WAL restore, the plugin gives the following error message:
Error while handling GRPC request","info":{"Server":{"Client":{}},"FullMethod":"/cnpgi.reconciler.v1.ReconcilerHooks/Pre"},"error":"roles.rbac.authorization.k8s.io \"menueplan-be-postgres-barman-cloud\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>
This seems to be a problem with additional permissions being required on OKD/Openshift. We already tried adding explicit permissions for setting finalizers on CronJobs to the plugins ClusterRole, but this does not seem to help.
Do we need to add this permission to another resource? Unfortunately I don't know where the plugin tries to set blockOwnerDeletion