Skip to content

Instantly share code, notes, and snippets.

@samirbehara-zz
Last active June 23, 2018 21:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save samirbehara-zz/a107124669a21e8ca3771c2105abc00d to your computer and use it in GitHub Desktop.
from kubernetes import client, config
# Setup the client for E2E Tests
def k8s_client():
# Configuration for accessing the K8s Cluster
config.load_kube_config("./config")
# Create and return an instance of the CoreV1Api class
return client.CoreV1Api()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment