Documentation

Overview

Package kubeconfig contains helper functions for working with Kubernetes config files.

Index

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 New

func New(server, clusterName, userName string, caCert []byte) *clientcmdapi.Config

func NewForClient

func NewForClient(serverURL, clusterName, userName string, ca, cert, key []byte) *clientcmdapi.Config

func RemoveConfig

func RemoveConfig(clusterName string) error

func RemoveConfigFromFile

func RemoveConfigFromFile(clusterName, path string) error

func WriteToFile

func WriteToFile(config *clientcmdapi.Config, path string) error

Types

This section is empty.