SysbeeTech / kubedeploy

Kubedeploy
https://kubedeploy.app/
Apache License 2.0
5 stars 2 forks source link

Add ttlSecondsAfterFinished in Jobspec with customizable value #27

Closed btoic closed 9 months ago

btoic commented 9 months ago

Expected Behavior

with:

deploymentMode: Job 

It should be possible to redeploy/upgrade Helm release with new values.

Current Behavior

Currently, Jobs are missing ttlSecondsAfterFinished which results in no expiration for Jobs. K8s treats jobs as imutable objects so it is not possible to define new one with updated values without removing the release first.

Possible Solution

see AutomaticCleanup for Finished Jobs Define default ttlSecondsAfterFinished with 5 min TTL by default, however allow the end user to define it's own desired TTL via jobspec

Your Environment