kubeclient

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient() (*kubernetes.Clientset, error)

GetClient creates a new k8s client object from the currently configured kubecontext

func GetClientConfig

func GetClientConfig() (clientcmd.ClientConfig, error)

func GetClientOrDie

func GetClientOrDie() *kubernetes.Clientset

func GetClientWithConfig

func GetClientWithConfig(kubeconfigFile *rest.Config) (*kubernetes.Clientset, error)

func GetClientWithConfigFromFile

func GetClientWithConfigFromFile(filepath string) (*kubernetes.Clientset, error)

func GetKubeConfig

func GetKubeConfig() string

GetKubeConfig returns the currently configured kubeconfig file location or error if non has been configured

func GetKubeConfigFile

func GetKubeConfigFile(filepath string) (*rest.Config, error)

func GetKubeConfigOrInCluster

func GetKubeConfigOrInCluster() (*rest.Config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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