Delete all resources by label without specifying the kind
Follow up issue from MR !262 (merged)
The ClusterSetup
class deletes all resources with the label created-by=theodolite
when the operator is started. This is done specifying each resource kind under consideration. We should simplify this to delete all resources without having to specify the kind type.
I did not found anything, but opened: https://github.com/fabric8io/kubernetes-client/discussions/4021 If there is no such functionality built-in, I think we could iterate over all API resources as suggested here: https://stackoverflow.com/a/69772833/4121056
(see original discussion)