config

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2015 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	OpenShiftConfigPathEnvVar      = "OPENSHIFTCONFIG"
	OpenShiftConfigFlagName        = "config"
	OpenShiftConfigHomeDir         = ".config/openshift"
	OpenShiftConfigHomeFileName    = "config"
	OpenShiftConfigHomeDirFileName = OpenShiftConfigHomeDir + "/" + OpenShiftConfigHomeFileName
)

Variables

View Source
var OldRecommendedHomeFile = path.Join(os.Getenv("HOME"), ".config/openshift/.config")
View Source
var RecommendedHomeFile = path.Join(os.Getenv("HOME"), OpenShiftConfigHomeDirFileName)

Functions

func CreateConfig added in v0.4.4

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

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

func FindExistingContextName

func FindExistingContextName(haystack clientcmdapi.Config, needle clientcmdapi.Context) string

FindExistingContextName finds the nickname for the passed context

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

File priority loading rules for OpenShift. 1. --config value 2. if OPENSHIFTCONFIG env var has a value, use it. Otherwise, ~/.config/openshift/config file

func NewPathOptions added in v0.5.1

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

func RelativizeClientConfigPaths added in v0.4.4

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

TODO should me 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