lwolf / kube-cleanup-operator

Kubernetes Operator to automatically delete completed Jobs and their Pods
MIT License
498 stars 109 forks source link

Does not remove jobs/pods that were created before Cleanup Operator was running #32

Closed gkrizek closed 5 years ago

gkrizek commented 5 years ago

I have clusters with lots of completed jobs across several namespaces. When I run the cleanup-operator, I expected it to remove the old jobs that were already on the cluster. Instead it doesn't and only removes jobs that were ran and finished after cleanup-operator was running.

Is this expected behavior?

lwolf commented 5 years ago

Yes it was initially designed this way. But it makes sense to add an configuration option to cleanup old pods as well. thanks

gkrizek commented 5 years ago

Ok, thanks for clarifying.