Skip to content

rajatjindal/kubectl-remove-in-allns

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
pkg
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

a kubectl plugin to remove a given resource from all namespaces

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published