Documentation ¶
Index ¶
- func GetClient() *kubernetes.Clientset
- func GetClientWithContext(contextName string, configPath string) *kubernetes.Clientset
- func GetDynamicClient() *dynamic.DynamicClient
- func GetDynamicClientWithContext(contextName string) *dynamic.DynamicClient
- func GetIstioClient() *istioVersioned.Clientset
- func GetKubeConfig(configPath ...string) string
- func GetRestConfig() *rest.Config
- func GetRuntimeClient(r *runtime.Scheme) runtimeclient.Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 GetKubeConfig ¶
if configPath existed, use it first or use ENV KUBECONFIG
func GetRestConfig ¶
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.
Click to show internal directories.
Click to hide internal directories.