k8sutils

package
v0.0.0-...-59d7cbf Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfigLoader

type ClientConfigLoader interface {
	Load(data []byte) (*clientcmdapi.Config, error)
	ClientFromConfig(config *rest.Config) (kubernetes.Interface, error)
	ClientFromPath(kubeConfigPath string) (kubernetes.Interface, error)
	GetConfigFromPath(kubeConfigPath string) (*rest.Config, error)
	DefaultClientConfig(config clientcmdapi.Config, overrides *clientcmd.ConfigOverrides) clientcmd.ClientConfig
	RawConfigFromClientConfig(clientConfig clientcmd.ClientConfig) (clientcmdapi.Config, error)
	ClientConfig(clientConfig clientcmd.ClientConfig) (*rest.Config, error)

	AdmiralClientFromConfig(config *rest.Config) (admiralclientset.Interface, error)
	AdmiralClientFromPath(kubeConfigPath string) (admiralclientset.Interface, error)

	IstioClientFromPath(kubeConfigPath string) (istioclientset.Interface, error)
	IstioClientFromConfig(config *rest.Config) (istioclientset.Interface, error)

	ArgoClientFromPath(kubeConfigPath string) (argoclientset.Interface, error)
	ArgoClientFromConfig(config *rest.Config) (argoclientset.Interface, error)
}

func NewConfigLoader

func NewConfigLoader() ClientConfigLoader

Jump to

Keyboard shortcuts

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