Documentation ¶
Overview ¶
Package kubeconfig contains helper functions for working with Kubernetes config files.
Index ¶
- func LoadClientCertificateFromConfig(config *clientcmdapi.Config) (*x509.Certificate, error)
- func MergeConfig(cfg *clientcmdapi.Config) error
- func MergeConfigToFile(cfg *clientcmdapi.Config, path string) error
- func New(server, clusterName, userName string, caCert []byte) *clientcmdapi.Config
- func NewForClient(serverURL, clusterName, userName string, ca, cert, key []byte) *clientcmdapi.Config
- func RemoveConfig(clusterName string) error
- func RemoveConfigFromFile(clusterName, path string) error
- func WriteToFile(config *clientcmdapi.Config, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadClientCertificateFromConfig ¶
func LoadClientCertificateFromConfig(config *clientcmdapi.Config) (*x509.Certificate, error)
func MergeConfig ¶
func MergeConfig(cfg *clientcmdapi.Config) error
MergeConfig merges the provided Config into the current users local kubeconfig.
func MergeConfigToFile ¶
func MergeConfigToFile(cfg *clientcmdapi.Config, path string) error
func NewForClient ¶
func NewForClient(serverURL, clusterName, userName string, ca, cert, key []byte) *clientcmdapi.Config
func RemoveConfig ¶
func RemoveConfigFromFile ¶
func WriteToFile ¶
func WriteToFile(config *clientcmdapi.Config, path string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.