config

package
v3.9.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2017 License: Apache-2.0 Imports: 13 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 NewOpenShiftClientConfigLoadingRules

func NewOpenShiftClientConfigLoadingRules() *clientcmd.ClientConfigLoadingRules

NewOpenShiftClientConfigLoadingRules returns file priority loading rules for OpenShift. 1. --config value 2. if KUBECONFIG env var has a value, use it. Otherwise, ~/.kube/config file

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
y or Y : Canonical URL