Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

canonical/kubernetes-rapper

Repository files navigation

Kubernetes (w)Rapper

A wrapper with some flow!

A Python Wrapper for your Kubernetes Operators!

Talk to the kubernetes api in a simpler way in your kubernetes operators written in python.

How to use

Initialize your kubernetes wrapper class with the default namespace you want to use.

from kubernetes_wrapper import Kubernetes

[..]

self.kubernetes = Kubernetes("my-namespace")

Apply your manifests just like you would do with kubectl:

self.kubernetes.apply(Path("my-manifest.yaml").read_text())

Delete your manifests the same way:

self.kubernetes.delete(Path("my-manifest.yaml").read_text())

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages