kclient

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Scheme = runtime.NewScheme()
)

Functions

func Config

func Config() *rest.Config

Config returns the *rest.Config

func CtlClient

func CtlClient() client.Client

CtlClient returns the controller-runtime client

func DiscoveryClient

func DiscoveryClient() *discovery.DiscoveryClient

DiscoveryClient returns the Kubernetes discovery Client

func DynamicClient

func DynamicClient() dynamic.Interface

DynamicClient returns the Kubernetes dynamic Client

func GetConfig

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

GetConfig creates a *rest.Config for talking to a Kubernetes apiserver.

func GetConfigWithAPIServerAddress

func GetConfigWithAPIServerAddress(apiServerAddress string) (*rest.Config, error)

GetConfigWithAPIServerAddress returns the *rest.Config based on the given api server address

func InitializeKubeClient

func InitializeKubeClient(conf *rest.Config)

InitializeKubeClient initializes the Kubernetes Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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