https://github.com/edsoncelio/kubeclean
Remove empty namespaces on kubernetes
https://github.com/edsoncelio/kubeclean
cli golang kubernetes
Last synced: about 1 month ago
JSON representation
Remove empty namespaces on kubernetes
- Host: GitHub
- URL: https://github.com/edsoncelio/kubeclean
- Owner: edsoncelio
- License: mit
- Created: 2020-10-26T23:37:18.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-15T20:20:39.000Z (over 5 years ago)
- Last Synced: 2025-03-28T14:30:54.259Z (about 1 year ago)
- Topics: cli, golang, kubernetes
- Language: Go
- Homepage:
- Size: 24.3 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README




[](https://goreportcard.com/report/github.com/edsoncelio/kubeclean)
# kubeclean
Tool to remove empty namespaces on kubernetes
>Disclaimer: Work in progress, just to practice go :p
:warning: Do not run with a kubeconfig with role cluster-admin!

## Requirements
* Go +1.15.2
* kubectl installed
* valid kubeconfig
## Installation
### from release
Download the package from the [release page](https://github.com/edsoncelio/kubeclean/releases) and execute
### using go get
`$ go get github.com/edsoncelio/kubeclean`
### from source
TODO
## Usage
`$ kubeclean`
## TODO
- [ ] add documentation
- [ ] add tests
- [x] check for deployment
- [x] check for service
- [x] check for statefulset
- [ ] check for secret (beyond default)
- [ ] check for service account (beyond default)
- [ ] use external file to namespace exceptions (system namespaces)
- [x] create the help flag
- [x] configure CI (with github actions)
- [x] configure release