Documentation ¶
Index ¶
- func CreateConfig(namespace string, clientCfg *restclient.Config) (*clientcmdapi.Config, error)
- func MergeConfig(startingConfig, addition clientcmdapi.Config) (*clientcmdapi.Config, error)
- func NewPathOptions(cmd *cobra.Command) *kclientcmd.PathOptions
- func NewPathOptionsWithConfig(configPath string) *kclientcmd.PathOptions
- func RelativizeClientConfigPaths(cfg *clientcmdapi.Config, base string) (err error)
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.
Click to show internal directories.
Click to hide internal directories.