kube

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(context, kubeconfig string) clientcmd.ClientConfig

GetConfig returns a Kubernetes client config for a given context. * context - Overrides the name of the kubernetes context, otherwise current-context is used * kubeconfig - Overrides the config file path, defaults to ~/.kube/config

func LoadConfig

func LoadConfig(config, context string) (*rest.Config, error)

LoadConfig return a Kubernetes client config to be used by rest clients.

Types

This section is empty.

Jump to

Keyboard shortcuts

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