zncdatadev / trino-operator

Operator for Trino, the distributed SQL query engine for big data
Apache License 2.0
3 stars 5 forks source link

[Feature]: Add finalizer when deleting resources #60

Open whg517 opened 2 months ago

whg517 commented 2 months ago

ref: https://sdk.operatorframework.io/docs/building-operators/golang/advanced-topics/#handle-cleanup-on-deletion

According to the development suggestions of operator sdk, you should use finalizer to delete resources so that the coordinator of associated resources can properly clear corresponding resources. We should refine the project-related logic according to the relevant implementation