Skip to content

texano00/k8s-swiss-knife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8s-swiss-knife

k8s-swiss-knife is the k8s plugin you ever wanted.

Install

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

Usage

help

kubectl swissknife -h

kubectl swissknife root_less_checker -h

root_less_checker

kubectl swissknife root_less_checker [-n <namespace>]

healthcheck

kubectl swissknife healthcheck [-n <namespace>]

get_resource

kubectl swissknife get_resource [-n <namespace>]

Note

Register binary with your shell’s completion framework by running register-python-argcomplete:

eval "$(register-python-argcomplete kubectl-swissknife)"

Development

#! /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

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Version

Current version: 0.5.0 - see the CHANGELOG file for details.