Documentation ¶
Overview ¶
Package conf is used to create an instance of *rest.Config
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultClusterContext = ""
DefaultClusterContext default cluster context
Functions ¶
func New ¶
New returns Kubernetes configuration value of type *rest.Config. filename is kubeconfig file
func NewInCluster ¶
NewInCluster for clients that expect to be running inside a pod on kubernetes
func NewWithContextName ¶
NewWithContextName returns k8s config value of type *rest.Config
func ResolveClusterContext ¶
func ResolveClusterContext() string
ResolveClusterContext returns cluster context name based on --context flag.
func ResolveKubeConfigFile ¶
func ResolveKubeConfigFile() string
ResolveKubeConfigFile returns the kubeconfig file from either flag --kubeconfig or env KUBECONFIG. If flag.Parsed() is true then lookup for --kubeconfig flag. If --kubeconfig, or KUBECONFIG, or $HOME/.kube/config not provided then assume in cluster.
Types ¶
This section is empty.