kubeconfig

package
Version: v4.1.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfig

func CreateConfig(namespace string, clientCfg *restclient.Config) (*clientcmdapi.Config, error)

CreateConfig takes a clientCfg and builds a config (kubeconfig style) from it.

func MergeConfig

func MergeConfig(startingConfig, addition clientcmdapi.Config) (*clientcmdapi.Config, error)

MergeConfig adds the additional Config stanzas to the startingConfig. It blindly stomps clusters and users, but it searches for a matching context before writing a new one.

func NewPathOptions

func NewPathOptions(cmd *cobra.Command) *kclientcmd.PathOptions

func NewPathOptionsWithConfig

func NewPathOptionsWithConfig(configPath string) *kclientcmd.PathOptions

func RelativizeClientConfigPaths

func RelativizeClientConfigPaths(cfg *clientcmdapi.Config, base string) (err error)

TODO should be moved upstream

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL