Sugar for Kubernetes
Project description
Development
Environment Setup
During development, use symlinks to include this package instead of pipenv:
cd /project/using/k8kat
ln -s $k8kat_path/k8kat
Building
https://packaging.python.org/tutorials/packaging-projects/
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
or
twine upload dist/*
Cluster Authentication
By default it works as kubectl - try to find kubeconfig and reads authentication data.
Playing Around
pipenv shell
run examples from examples/
:
python examples/list_pod.py
Test Suite
Run unit-tests (no cluster required):
python3 -m unittest discover -v k8kat/tests
Run e2e-test (you should be using an empty cluster):
python3 -m unittest discover -v k8kat/e2e-tests
Formating, typing
Use Black to formate code
black .
To run type checker
mypy k8kat examples/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.