istio: istio.io/istio/pkg/kube Index | Files | Directories

package kube

import "istio.io/istio/pkg/kube"

Index

Package Files

config.go

func BuildClientCmd Uses

func BuildClientCmd(kubeconfig, context string) clientcmd.ClientConfig

BuildClientCmd builds a client cmd config from a kubeconfig filepath and context. It overrides the current context with the one provided (empty to use default).

This is a modified version of k8s.io/client-go/tools/clientcmd/BuildConfigFromFlags with the difference that it loads default configs if not running in-cluster.

func BuildClientConfig Uses

func BuildClientConfig(kubeconfig, context string) (*rest.Config, error)

BuildClientConfig builds a client rest config from a kubeconfig filepath and context. It overrides the current context with the one provided (empty to use default).

This is a modified version of k8s.io/client-go/tools/clientcmd/BuildConfigFromFlags with the difference that it loads default configs if not running in-cluster.

func CreateClientset Uses

func CreateClientset(kubeconfig, context string) (*kubernetes.Clientset, error)

CreateClientset is a helper function that builds a kubernetes Clienset from a kubeconfig filepath. See `BuildClientConfig` for kubeconfig loading rules.

func CreateInterfaceFromClusterConfig Uses

func CreateInterfaceFromClusterConfig(clusterConfig *clientcmdapi.Config) (kubernetes.Interface, error)

CreateInterfaceFromClusterConfig is a helper function to create Kubernetes interface from in memory cluster config struct

Directories

PathSynopsis
injectPackage inject implements kube-inject or webhoook autoinject feature to inject sidecar.
secretcontroller

Package kube imports 5 packages (graph) and is imported by 21 packages. Updated 2019-11-16. Refresh now. Tools for package owners.