• Clayton Coleman's avatar
    Make clientcmd defaulting a function of ConfigOverrides and LoadingRules · 07f07921
    Clayton Coleman authored
    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.
    07f07921
Name
Last commit
Last update
..
api Loading commit data...
auth_loaders.go Loading commit data...
client_config.go Loading commit data...
client_config_test.go Loading commit data...
config.go Loading commit data...
doc.go Loading commit data...
loader.go Loading commit data...
loader_test.go Loading commit data...
merged_client_builder.go Loading commit data...
merged_client_builder_test.go Loading commit data...
overrides.go Loading commit data...
validation.go Loading commit data...
validation_test.go Loading commit data...