kubeconfig

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigExtensionName = "kflex-config-extension-name"
	InitialContextName  = "kflex-initial-ctx-name"
)

Variables

This section is empty.

Functions

func DeleteContext

func DeleteContext(config *clientcmdapi.Config, cpName string) error

func IsInitialConfigSet

func IsInitialConfigSet(config *clientcmdapi.Config) bool

func LoadAndMerge

func LoadAndMerge(ctx context.Context, client kubernetes.Clientset, name, controlPlaneType string) error

func LoadAndMergeNoWrite added in v0.2.5

func LoadAndMergeNoWrite(ctx context.Context, client kubernetes.Clientset, name, controlPlaneType string, konfig *clientcmdapi.Config) error

LoadAndMergeNoWrite: works as LoadAndMerge but on supplied konfig from file and does not write it back

func LoadKubeconfig

func LoadKubeconfig(ctx context.Context) (*clientcmdapi.Config, error)

func SwitchContext

func SwitchContext(config *clientcmdapi.Config, cpName string) error

func SwitchToInitialContext

func SwitchToInitialContext(config *clientcmdapi.Config, removeExtension bool) error

func WatchForSecretCreation

func WatchForSecretCreation(clientset kubernetes.Clientset, controlPlaneName, secretName string) error

func WriteKubeconfig

func WriteKubeconfig(ctx context.Context, config *clientcmdapi.Config) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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