Closed gree-gorey closed 5 years ago
Thanks for reporting, I tested that cascading should be the default. Will investigate.
Here is the open issues in pykube
related to this:
https://github.com/kelproject/pykube/issues/87
https://github.com/kelproject/pykube/issues/105
I assumed from Pipfile you use this library and not your fork of it
@gree-gorey it uses the fork (pykube-ng
), see https://github.com/hjacobs/kube-janitor/blob/master/Pipfile#L8 --- but this does not change the situation :smile:
@hjacobs right, I missed it Btw, I can look into it and see if I can provide a PR if needed
What happened:
I created Deployment and annotated it:
The pod had valid
ownerReferences
:As expected, the Deployments was deleted after 1m, here the logs of kube-janitor:
But pod wasn't deleted and was orphaned.
ownerReferences
was removed:What I expected:
That deletion of resources is cascading. Otherwise there is little sense to just delete Deployments and leave all the Pods behind.
Context
kubectl version:
kube-janitor version and flags:
rules.yaml: