helm: related Job objects won't be deleted when Cronjob object is deleted

I have created a chart which will run a CronJob but after helm delete, Job objects created by CronJob won’t be deleted.

The sample chart could be downloaded from here (The tgz file should be decompressed firstly and then could be installed).

Install the chart: image

Delete the chart: image

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 12
  • Comments: 16 (6 by maintainers)

Most upvoted comments

Same behavior with

Client: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}

With helm 2.9 and k8s 1.10.1 I see the same thing. This was… pretty surprising.

I’m seeing this issue with Helm 2.8.2, k8s 1.8.7. When using kubectl delete to delete a CronJob created by a Helm chart, all child Jobs are cleaned up. When using helm delete --purge, the child Jobs are left hanging around.

/remove-lifecycle stale