MCPcopy
hub / github.com/kubernetes/client-go / GetStartingConfig

Method GetStartingConfig

tools/clientcmd/config.go:38–38  ·  view source on GitHub ↗

GetStartingConfig returns the config that subcommands should being operating against. It may or may not be merged depending on loading rules

()

Source from the content-addressed store, hash-verified

36 GetLoadingPrecedence() []string
37 // GetStartingConfig returns the config that subcommands should being operating against. It may or may not be merged depending on loading rules
38 GetStartingConfig() (*clientcmdapi.Config, error)
39 // GetDefaultFilename returns the name of the file you should write into (create if necessary), if you're trying to create a new stanza as opposed to updating an existing one.
40 GetDefaultFilename() string
41 // IsExplicitFile indicates whether or not this command is interested in exactly one file. This implementation only ever does that via a flag, but implementations that handle local, global, and flags may have more

Callers 5

ModifyConfigFunction · 0.65
PersistMethod · 0.65
writeCurrentContextFunction · 0.65
writePreferencesFunction · 0.65
TestModifyContextFunction · 0.65

Implementers 3

ClientConfigGettertools/clientcmd/loader.go
ClientConfigLoadingRulestools/clientcmd/loader.go
PathOptionstools/clientcmd/config.go

Calls

no outgoing calls

Tested by 1

TestModifyContextFunction · 0.52