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 ResolveKubeConfig(rawConfig clientcmd.ClientConfig) ([]byte, 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 ReadKubeConfig ¶ added in v0.5.0
func ReadKubeConfig(ctx context.Context, client *kubernetes.Clientset, suffix, namespace string) (*clientcmdapi.Config, error)
func ResolveKubeConfig ¶ added in v0.20.0
func ResolveKubeConfig(rawConfig clientcmd.ClientConfig) ([]byte, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.