Documentation ¶
Index ¶
- Constants
- func DeleteContext(config *clientcmdapi.Config, cpName string) error
- func IsInitialConfigSet(config *clientcmdapi.Config) bool
- func LoadAndMerge(ctx context.Context, client kubernetes.Clientset, name string) error
- func LoadKubeconfig(ctx context.Context) (*clientcmdapi.Config, error)
- func SwitchContext(config *clientcmdapi.Config, cpName string) error
- func SwitchToInitialContext(config *clientcmdapi.Config, removeExtension bool) error
- func WatchForSecretCreation(clientset kubernetes.Clientset, name, secretName string) error
- func WriteKubeconfig(ctx context.Context, config *clientcmdapi.Config) error
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 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, name, secretName string) error
func WriteKubeconfig ¶
func WriteKubeconfig(ctx context.Context, config *clientcmdapi.Config) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.