client

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient() *kubernetes.Clientset

k8s api client

func GetClientWithContext

func GetClientWithContext(contextName string, configPath string) *kubernetes.Clientset

k8s api client with set-context = contextName configPath equal merged kubeconfigs, example dev, prod, test

func GetDynamicClient

func GetDynamicClient() *dynamic.DynamicClient

get dyn client for use dynamic DynamicClient

func GetDynamicClientWithContext

func GetDynamicClientWithContext(contextName string) *dynamic.DynamicClient

get dynamic client with Context

func GetIstioClient

func GetIstioClient() *istioVersioned.Clientset

get istio client

func GetKubeConfig

func GetKubeConfig(configPath ...string) string

if configPath existed, use it first or use ENV KUBECONFIG

func GetRestConfig

func GetRestConfig() *rest.Config

get rest config, if you want use for other resources Example: istioClient

func GetRuntimeClient

func GetRuntimeClient(r *runtime.Scheme) runtimeclient.Client

get runtime client

Types

This section is empty.

Jump to

Keyboard shortcuts

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