Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

devrajpaul/kubeconfig-python

Open more actions menu
 
 

Repository files navigation

kubeconfig

kubeconfig is a simple Python module for manipulating Kubernetes kubeconfig files.

from kubeconfig import KubeConfig

conf = KubeConfig()
conf.set_context('new-context', cluster='other-cluster', user='my-user')
conf.use_context('new-context')
print(conf.view())

Installing

pip install kubeconfig

Example usage cases

  • Generating configs for users
  • Tooling that manages switching between multiple clusters or users
  • Cycling credentials out in a config
  • Updating CA cert entries in your config

Documentation

See the documentation for more details on usage.

License

kubeconfig is licensed under the BSD 3-Clause License.

About

A Python API for manipulating kubeconfig files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.5%
  • Makefile 1.5%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.