Skip to content

A Helm plugin that removes failed release revisions from a Kubernetes cluster

License

Notifications You must be signed in to change notification settings

isutton/helm-janitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

helm-janitor

helm-janitor is a Helm plugin that remove failed release revisions from a Kubernetes cluster.

Installing from sources

To compile and install helm-janitor from sources, perform the following commands:

# creates the environment variables Helm provides to plugins to
# properly install in the host system
$ eval $(helm env)
$ echo $HELM_PLUGINS
/home/isuttonl/.local/share/helm/plugins

# compiles and install the plugin in HELM_PLUGINS directory
$ make install
mkdir -p ./dist
go build -o ./dist/helm-janitor main.go
mkdir -p ./dist/janitor
cp ./dist/helm-janitor ./dist/janitor
cp ./plugin.yaml ./dist/janitor
mkdir -p /home/isuttonl/.local/share/helm/plugins/janitor
install ./dist/janitor/* /home/isuttonl/.local/share/helm/plugins/janitor/

Once this is finished, the plugin should be available:

$ helm janitor
A Helm plugin that remove failed releases revisions from the cluster

Usage:
  helm-janitor [command]

Available Commands:
  clean       remove unused artifacts of previous failed releases
  completion  generate the autocompletion script for the specified shell
  help        Help about any command

Flags:
      --config string   config file (default is $HOME/.helm_janitor.yaml)
  -h, --help            help for helm-janitor

Use "helm-janitor [command] --help" for more information about a command.

Building helm-janitor

To build only the plugin program, use the build target:

make build

License

MIT

About

A Helm plugin that removes failed release revisions from a Kubernetes cluster

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published