Documentation ¶
Index ¶
- func GetConfig(kubeconfigPath string) (*rest.Config, error)
- func GetConfigWithContext(kubeconfigPath, kubeContext string) (*rest.Config, error)
- func GetRawConfig(kubeconfigPath, kubeContext string) (api.Config, error)
- func GetScheme() *runtime.Scheme
- func NewClientConfig(kubeConfig []byte) (*rest.Config, error)
- func NewClientFromConfig(config *rest.Config) (kubernetes.Interface, error)
- func SetDefaultQPS(cfg *rest.Config, qps float32, burst int) *rest.Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigWithContext ¶
GetConfigWithContext returns kubernetes config based on the current environment. If fpath is provided, loads configuration from that file. Otherwise, GetConfig uses default strategy to load configuration from $KUBECONFIG, .kube/config, or just returns in-cluster config.
func GetRawConfig ¶
GetRawConfig creates a raw clientcmd api config
func NewClientConfig ¶
NewClientConfig creates a Kubernetes client config from raw kube config.
func NewClientFromConfig ¶
func NewClientFromConfig(config *rest.Config) (kubernetes.Interface, error)
NewClientFromConfig creates a new Kubernetes client from config.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.