Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

AnonC0DER/kubectl-confirm-delete-middleware

Repository files navigation

kubectl delete confirmation script

It's a really simple script with less than 50 lines of code yet, in my opinion, a useful middleware to prevent irreversible mistakes.

How to use?

  • go build or you can simply download the latest binary file from releases
  • 'mv kubectl-confirm-delete /usr/share/mydir/'
  • Add this alias to your zshrc or bashrc
  • alias kubectl="/usr/share/mydir/kubectl-confirm-delete"

Then, if you run "kubectl delete whatever_resource whatever_name", you should be able to see the confirmation message.

About

Simple script which can act like a middleware to save your a** on "kubectl delete ..." command

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /