kubeconfig

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextNames

func ContextNames(
	kubeconfig KubeConfig,
	selectedName string,
	allContexts bool,
	excludedNames []string,
) ([]string, error)

func DefaultKubeconfigPath

func DefaultKubeconfigPath(forceNotInCluster bool) (filePath string, runningInCluster bool, err error)

Types

type KubeConfig

type KubeConfig *clientcmdapi.Config

func LoadKubeconfig

func LoadKubeconfig(configFilePath string) (KubeConfig, error)

Jump to

Keyboard shortcuts

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