#kubectl #command-line-tool #kubernetes #cli #user #prompt #confirmation

app kubectl-check

A CLI tool to prompt users for confirmation before running potentially unsafe kubectl commands

10 releases

0.2440.0 Oct 9, 2024
0.2439.6 Oct 4, 2024
0.1.1 Oct 1, 2024

#641 in Command line utilities

Download history 627/week @ 2024-09-28 235/week @ 2024-10-05 37/week @ 2024-10-12 2/week @ 2024-10-19 4/week @ 2024-11-02

54 downloads per month

MIT license

105KB
264 lines

kubectl-check

Example

A CLI tool to prompt users for confirmation before running potentially unsafe kubectl commands.

[!IMPORTANT] The prompt will be disabled if the command is excuted in non-interactive terminal.

Installation

  • Download the binary from releases

    Head over to the releases page to download the binary.

  • Using homebrew

    brew tap beleap/tap
    brew install beleap/tap/kubectl-check
    

Tips

  • Set alias

    alias k="kubectl check"
    
  • Configure unsafe commands

    Can be configured with KUBECTL_CHECK_UNSAFE environment variable. Provide a comma-delimited string like edit,scale.

    • Default unsafe commands can be found here.

Dependencies

~2–12MB
~76K SLoC