helm-janitor

command module
v0.0.0-...-265c3d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

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

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL