https://github.com/joelee2012/helm-clean
Helm plugin for cleaning releases out of date
https://github.com/joelee2012/helm-clean
helm helm-plugin plugin
Last synced: about 1 month ago
JSON representation
Helm plugin for cleaning releases out of date
- Host: GitHub
- URL: https://github.com/joelee2012/helm-clean
- Owner: joelee2012
- License: apache-2.0
- Created: 2024-05-29T03:25:02.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-12-30T03:20:55.000Z (5 months ago)
- Last Synced: 2025-02-14T14:16:54.954Z (3 months ago)
- Topics: helm, helm-plugin, plugin
- Language: Go
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# helm-clean
A helm plugin to clean release by date# Installation
```
helm plugin install https://github.com/joelee2012/helm-clean/releases/download/v0.1.0/helm-clean_0.1.0_linux_amd64.tar.gz
```# Usage
```
# helm clean -hA helm plugin to clean release by date
Clean/List the release which was updated before duration
Examples:
# List all release which was updated before 240h
helm clean -A -b 240h# List release which was created by chart that matched chart-1
helm clean -A -b 240h -I chart-1# List release was not created by chart that matched chart-1
helm clean -A -b 240h -E chart-1# Exclude namespace match pattern
helm clean -A -b 240h -e kube-system# Exclude release match pattern
helm clean -A -b 240h -e ':release-1'# Exclude release and namespace match pattern
helm clean -A -b 240h -e '.*-namespace:.*-release'Usage:
clean [flags]Flags:
-A, --all-namespaces Check releases across all namespaces
-b, --before helm list The last updated time before now, eg: 8h, (default 0) equal helm list
-d, --dry-run Dry run mode only print the release info (default true)
-e, --exclude strings Regular expression ':', the matched
release and namespace will be excluded from the result (can specify multiple)
-E, --exclude-chart strings Regular expression, the chart of releases that matched the
expression will be excluded from the result (can specify multiple)
-h, --help help for clean
-i, --include strings Regular expression ':', the matched
release and namespace will be included in result only (can specify multiple)
-I, --include-chart strings Regular expression, the chart of releases that matched the
expression will be included in the result only (can specify multiple)
-o, --output string prints the output in the specified format. Allowed values: table, csv (default "table")
-v, --version version for clean
```