Documentation
¶
Index ¶
- Constants
- func ConvertRestConfigToClientConfig(config *rest.Config) (clientcmd.ClientConfig, error)
- func GetDefaultSecretName(suffix string) string
- func ReadKubeConfig(ctx context.Context, client *kubernetes.Clientset, suffix, namespace string) (*clientcmdapi.Config, error)
- func WriteKubeConfig(ctx context.Context, currentNamespaceClient client.Client, ...) error
Constants ¶
View Source
const (
DefaultSecretPrefix = "vc-"
KubeconfigSecretKey = "config"
CADataSecretKey = "certificate-authority"
CertificateSecretKey = "client-certificate"
CertificateKeySecretKey = "client-key"
)
Variables ¶
This section is empty.
Functions ¶
func ConvertRestConfigToClientConfig ¶ added in v0.19.0
func ConvertRestConfigToClientConfig(config *rest.Config) (clientcmd.ClientConfig, error)
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) (*clientcmdapi.Config, error)
func WriteKubeConfig ¶
func WriteKubeConfig(ctx context.Context, currentNamespaceClient client.Client, secretName, secretNamespace string, config *clientcmdapi.Config, isRemote bool) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.