solr-operator
solr-operator copied to clipboard
Delete Managed Kube resources that are no longer used
The Solr Operator creates many Kubernetes resources while reconciling.
The operator will often choose to create or not create resources depending on the configuration of Solr resource (e.g. a SolrCloud resource). However if a SolrCloud is setup in a way that a resource is needed, and then the setup is changed so the resource is no longer necessary, the operator does not go and garbage collect that resource.
It would be nice to add this additional level of garbage collection to the operator.
We could possibly design this in a way to auto-collect at the end of a reconcile, or just do it on a case-by-case basis for each resource dependency.