A utility chart for setting a "time to live" for helm releases. Not currently hosted in a public chart registry!
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
templates
.helmignore
Chart.yaml
LICENSE
README.md
values.yaml

README.md

helm-cleanup

This helm chart allows specifying a time to live (TTL) for its own helm release.

This is a utility chart, meaning that it is meant to be installed only as a dependency of a parent chart.

For information on adding dependencies to your chart, see: https://docs.helm.sh/developing_charts/#chart-dependencies.

Example Usage

This example demonstrates installation of mychart, which should be built with a dependency on the cleanup chart.

helm install [mychart] \
  --set cleanup.timeToLive.enabled=true \
  --set cleanup.timeToLive.duration=8h

For a toy example, we can install the cleanup chart directly with a short TTL and observe that it deletes its own release within about 60 seconds:

helm install . \
  --set timeToLive.enabled=true \
  --set timeToLive.duration=60s