PrefectHQ / prefect-operator

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

Give controller access to manipulate PVCs #41

Closed mitchnielsen closed 2 months ago

mitchnielsen commented 2 months ago

Summary

Currently, the Controller will start up and eventually crash because it can't watch PVCs. This gives it the correct permission to manipulate those objects.

Testing

Start the controller with these changes and observe the log entry:

manager 2024-08-20T21:23:56Z    INFO    Starting EventSource    {"controller": "prefectserver", "controllerGroup": "prefect.io", "controllerKind": "PrefectServer", "source": "kind source: *v1.PersistentVolumeClaim"}

Confirm that it doesn't crash after 1-2 minutes.