fantapsody opened a new issue #9754: URL: https://github.com/apache/pulsar/issues/9754
**Is your enhancement request related to a problem? Please describe.** In a Kubernetes environment, if the functions are not deleted before the broker cluster is deleted, the function objects (StatefulSets and Services) are left undeleted. It seems the best practice to clean up these objects is to add customized labels to the Kubernetes runtime configuration and then find objects to delete with these labels, is it? **Describe the solution you'd like** Pulsar may accept an [owner reference](https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/) as a new Kubernetes runtime configuration and add the owner reference to function objects automatically. The owner reference might point to an object representing the broker cluster. And when the broker object is deleted, the function objects should be deleted by the garbage collector automatically. **Describe alternatives you've considered** **Additional context** ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
