Skip to main content

Sugar for Kubernetes

Project description

PyPI pyversions PyPI version fury.io Client Support Level codecov

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

k8kat-0.1.1.tar.gz (18.6 kB view hashes)

Uploaded Source

Built Distribution

k8kat-0.1.1-py3-none-any.whl (25.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page