kubeconfig

package
v0.5.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultSecretPrefix = "vc-"
	SecretKey           = "config"
)

Variables

This section is empty.

Functions

func GetDefaultSecretName added in v0.5.0

func GetDefaultSecretName(suffix string) string

func ReadKubeConfig added in v0.5.0

func ReadKubeConfig(ctx context.Context, client *kubernetes.Clientset, suffix, namespace string) (*api.Config, error)

func WriteKubeConfig

func WriteKubeConfig(ctx context.Context, client client.Client, secretName, secretNamespace string, config *api.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