Skip to content
a kubectl plugin to remove a given resource from all namespaces
Go Shell
Branch: master
Clone or download
Latest commit 5f79d54 Oct 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pkg first version of delete resources Oct 12, 2019
vendor
.gitignore first version of delete resources Oct 12, 2019
.krew.yaml add .krew.yaml file Oct 18, 2019
Gopkg.lock first version of delete resources Oct 12, 2019
Gopkg.toml first version of delete resources Oct 12, 2019
LICENSE first version of delete resources Oct 12, 2019
README.md fix file name Oct 12, 2019
build.sh Add build script Oct 12, 2019
main.go first version of delete resources Oct 12, 2019

README.md

kubectl-remove-in-allns

This has not been tested thoroughly. Not recommended for use in Production and use at your own risk.

This kubectl plugin can delete a given resource from all the namespaces

sample usage

$ ./kubectl-remove-in-allns configmap my-test-config
INFO[0000] configmap "my-test-config" deleted from namespace "default" 
INFO[0000] configmap "my-test-config" not found in namespace "kube-node-lease" 
INFO[0000] configmap "my-test-config" not found in namespace "kube-public" 
INFO[0000] configmap "my-test-config" deleted from namespace "kube-system" 
INFO[0000] configmap "my-test-config" deleted from namespace "test" 

supports following resources right now (PR welcome for supporting other resource types):

  • configmaps
  • secrets
  • ingress
  • deployments
You can’t perform that action at this time.