You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a kustomization object is deleted (with prune: true) the jobs underneath it will be deleted as well but Completed pods belonging to those jobs do not get deleted.
This should have something to do with PropagationPolicy when issuing the delete command from kubeclient as I read through the code ( it should be set to foreground or background ).
reproducing
create a simple kustomization with a job in it, delete the kustomization, you will see the job is deleted but the pod belonging to the job is still there
observations
OwnerReferences are wiped out from the pods when the job is deleted.
Expected behaviour
Pods should be deleted along with jobs when kustomization is deleted.
When a kustomization object is deleted (with
prune: true
) the jobs underneath it will be deleted as well but Completed pods belonging to those jobs do not get deleted.This should have something to do with
PropagationPolicy
when issuing the delete command from kubeclient as I read through the code ( it should be set toforeground
orbackground
).reproducing
create a simple kustomization with a job in it, delete the kustomization, you will see the job is deleted but the pod belonging to the job is still there
observations
OwnerReferences are wiped out from the pods when the job is deleted.
Expected behaviour
Pods should be deleted along with jobs when kustomization is deleted.
References
Sidenote
I can probably create a PR for this
The text was updated successfully, but these errors were encountered: