k8sclient

package
v0.0.0-...-723a762 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterAuthInfo

type ClusterAuthInfo struct {
	Clientset   *kubernetes.Clientset
	Config      *rest.Config
	ContextName string
	ClusterName string
}

ClusterAuthInfo is a struct that contains a Kubernetes clientset and a Kubernetes config. in somecases we can't use clientset and have to pass REST Config, e.g. in InitClusterAPI

func GetKubernetesClient

func GetKubernetesClient(kubeconfigPath, contextName, clusterName string) (*ClusterAuthInfo, error)

Jump to

Keyboard shortcuts

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