kubectl-prune

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

README

kubectl-prune

feature

skip default sa skip docker pull secrets

usage

  • delete one kind with confirm
$ k prune cm
delete configmap/unsed-map (y/n) y
delete configMap/usused-map2 (y/m) n

deleted configMap/unsed-map
  • delete suck kind with confirm
$ k prune cm,secrets

...
  • delete all kind with confirm
k prune —all
  • delete with no confirm
$ k prune cm -y

delete cm/test2
delete cm/test
  • delete with all namespaces (should ignore kube-system)
$ k prune —-all-namespaces

need dry-run ?

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
cmd

Jump to

Keyboard shortcuts

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