We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the ability to set the expiration time to a release, after the TTL(time-to-live) expires the release is deleted.
Command to set a TTL after which the release will be deleted.
Set TTL time: helm release tll <RELEASE-NAME> --set=<>21 days # Runs kubectl apply with Cronjob object
helm release tll <RELEASE-NAME> --set=<>21 days
kubectl apply
Get TTL time: helm release ttl <RELEASE-NAME> # Retruns the TTL timeout, time left
helm release ttl <RELEASE-NAME>
Remove TTL time: helm release ttl <RELEASE-NAME> -unset # Remove the TTL timeout
helm release ttl <RELEASE-NAME> -unset
Design:
date --date="1 day"
date
helm
Cronjob Object
apiVersion: batch/v1 kind: CronJob metadata: name: <release-name>-ttl namespace: <release-namespace> spec: schedule: "* * * * *" # < date --date="4 days" jobTemplate: spec: template: spec: containers: - name: hello image: ibmcom/helm imagePullPolicy: IfNotPresent command: - helm uninstall <RELEASE NAME> && \ kubectl delete chronjob <release-name>-ttl restartPolicy: OnFailure
The text was updated successfully, but these errors were encountered:
vadim-zabolotniy
No branches or pull requests
Add the ability to set the expiration time to a release, after the TTL(time-to-live) expires the release is deleted.
Command to set a TTL after which the release will be deleted.
Set TTL time:
helm release tll <RELEASE-NAME> --set=<>21 days
# Runskubectl apply
with Cronjob objectGet TTL time:
helm release ttl <RELEASE-NAME>
# Retruns the TTL timeout, time leftRemove TTL time:
helm release ttl <RELEASE-NAME> -unset
# Remove the TTL timeoutDesign:
date --date="1 day"
to set TTL timeout, thedate
command should output the cronjob time formatting.helm
command to delete the release.Cronjob Object
The text was updated successfully, but these errors were encountered: