k8s-swiss-knife is the k8s plugin you ever wanted.
LATEST_TAG=$(curl https://api.github.com/repos/texano00/k8s-swiss-knife/tags | jq -r '.[0].name') && wget -O kubectl-swissknife "https://github.com/texano00/k8s-swiss-knife/releases/download/$LATEST_TAG/kubectl-swissknife" && sudo install kubectl-swissknife /usr/bin
kubectl swissknife -h
kubectl swissknife root_less_checker -h
kubectl swissknife root_less_checker [-n <namespace>]
kubectl swissknife healthcheck [-n <namespace>]
kubectl swissknife get_resource [-n <namespace>]
Register binary with your shell’s completion framework by running register-python-argcomplete
:
eval "$(register-python-argcomplete kubectl-swissknife)"
#! /bin/bash
cd plugin
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pyinstaller -F --path venv/lib64/python3.10/site-packages kubectl-swissknife.py
sudo cp dist/kubectl-swissknife /usr/local/bin/kubectl-swissknife
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Current version: 0.5.0 - see the CHANGELOG file for details.