PrefectHQ / prefect-operator

A Kubernetes operator for managing Prefect servers and work pools
7 stars 0 forks source link

Allow the Operator to watch PersistentVolumeClaims #37

Closed mitchnielsen closed 3 weeks ago

mitchnielsen commented 4 weeks ago

Summary

When working on https://github.com/PrefectHQ/prefect-operator/pull/36, I ran into the following error that would eventually crash the controller:

Failed to watch v1.PersistentVolumeClaim: failed to list v1.PersistentVolumeClaim: persist entvolumeclaims is forbidden: User "system:serviceaccount:prefect-operator-system:prefect-operator-controller-manager" cannot list resource "persistentvolumeclaims" in API group "" at the cluster scope

We'll likely just need to adjust the Role permissions for the service account.

chrisguidry commented 3 weeks ago

Fixed in #41