k3s/pkg/client/unversioned/clientcmd
Clayton Coleman 07f079216e
Make clientcmd defaulting a function of ConfigOverrides and LoadingRules
This commit moves away from using a global variable for default
configuration checking, and instead exposes a method on LoadingRules to
determine whether a particular restclient.Config should be considered
"default". This allows kubectl to provide its own defaults (the same
as before, KUBERNETES_MASTER and the static localhost:8080 values) while
allowing other clients to avoid defining them.

In-cluster config defaulting is now easier to read.
2016-09-21 01:28:06 -04:00
..
api Merge pull request #29696 from brendandburns/kubecfg 2016-08-21 11:18:21 -07:00
auth_loaders.go Make password prompting hide the string 2016-08-27 21:31:04 -07:00
client_config.go Make clientcmd defaulting a function of ConfigOverrides and LoadingRules 2016-09-21 01:28:06 -04:00
client_config_test.go Make clientcmd defaulting a function of ConfigOverrides and LoadingRules 2016-09-21 01:28:06 -04:00
config.go Merge pull request #28232 from cjcullen/webhook2 2016-06-29 22:14:04 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
loader.go Make clientcmd defaulting a function of ConfigOverrides and LoadingRules 2016-09-21 01:28:06 -04:00
loader_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
merged_client_builder.go Make clientcmd defaulting a function of ConfigOverrides and LoadingRules 2016-09-21 01:28:06 -04:00
merged_client_builder_test.go Make clientcmd defaulting a function of ConfigOverrides and LoadingRules 2016-09-21 01:28:06 -04:00
overrides.go ClientConfig should not default to http://localhost:8080 2016-08-30 10:43:24 -04:00
validation.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
validation_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00