kubeclient

package
v0.0.0-...-8eabfc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeClient

type KubeClient struct {
	KubeConfigPath string
	// contains filtered or unexported fields
}

KubeClient state for a Kubernetes client (inCluster or regular one)

func NewKubeClient

func NewKubeClient(kubeConfigPath string) (*KubeClient, error)

NewKubeClient instantiate a new Kubernetes client, pass kubeConfigPath == "" to build an InCluster client

func (*KubeClient) GetKubernetesClient

func (k *KubeClient) GetKubernetesClient() *kubernetes.Clientset

GetKubernetesClient returns the k8s object to work with the API

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL