kubeconfig

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL