kube

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(kubeconfig string) clientcmd.ClientConfig

GetConfig returns a Kubernetes client config for a given kubeconfig.

Types

type Client

type Client struct {
	KubeClient    kubernetes.Interface
	ExtClient     apiextensionsclient.Interface
	DynamicClient dynamic.Interface
	CtrlClient    client.Client
	KudoClient    versioned.Interface
}

Client provides access different K8S clients

func GetKubeClient

func GetKubeClient(kubeconfig string) (*Client, error)

GetKubeClient provides k8s client for kubeconfig

func GetKubeClientForConfig added in v0.16.0

func GetKubeClientForConfig(config *rest.Config) (*Client, error)

Jump to

Keyboard shortcuts

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