kube-monkey: github.com/asobti/kube-monkey/kubernetes Index | Files

package kubernetes

import "github.com/asobti/kube-monkey/kubernetes"

Package kubernetes is the km k8 package that sets up the configured k8 clientset used to communicate with the apiserver

Use CreateClient to create and verify connectivity. It's recommended to create a new clientset after a period of inactivity


Package Files


func CreateClient Uses

func CreateClient() (*kube.Clientset, error)

CreateClient creates, verifies and returns an instance of k8 clientset

func NewInClusterClient Uses

func NewInClusterClient() (*kube.Clientset, error)

NewInClusterClient only creates an initialized instance of k8 clientset

func VerifyClient Uses

func VerifyClient(client discovery.DiscoveryInterface) bool

Package kubernetes imports 6 packages (graph) and is imported by 6 packages. Updated 2020-07-10. Refresh now. Tools for package owners.