Skip to content

v0.1.2

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 25 Jun 05:52
69f11c7

kubectl-cns

kubectl-cns is a kubectl plugin that clean the namespace quickly.

This plugin has been tested to work with following delete types:

  • Delete Active namespace
  • Delete multi Active namespace
  • Delete Terminating namespace
  • Delete multi Terminating namespace

Build

if you have go env. build yourself. or download

git clone git@github.com:cuisongliu/kubectl-cns.git

go build .

cp kubectl-cns $YOUR_PATH

Usage

Binary Use

 
# delete an tx namespace
kubectl-cns tx

# delete an tx namespace by force
kubectl-cns tx --force

# delete some namespaces like tx, staging
kubectl-cns tx staging

# delete some namespaces like tx, staging , qa by force
kubect-cns tx staging qa --force
	

As Plugin Use

# delete an tx namespace
kubectl cns tx

# delete an tx namespace by force
kubectl cns tx --force

# delete some namespaces like tx, staging
kubectl cns tx staging

# delete some namespaces like tx, staging , qa by force
kubectl cns tx staging qa --force