airshipctl/cmd/config
Matthew Fuller 585af5a516 Remove defaults from Config object at runtime
This change fixes a bug where the default values that are
populated during an `airshipctl config init` were getting
mixed in with user specified values at runtime. For example,
a user with two contexts defined in their airship config
file would actually see a third phantom context with default
values in the output of `airshipctl config get-context`.

Also fixes a number of the config cmd and pkg unit tests that
were affected by this bug.

Change-Id: Iac591d4c2a616090028eb730576478edefb82544
Closes: #447
2021-03-19 17:31:02 +00:00
..
testdata Revert "Adding commands to get and set encryption configs" 2021-03-10 11:30:32 -06:00
config.go Revert "Adding commands to get and set encryption configs" 2021-03-10 11:30:32 -06:00
config_test.go Removed K8s Authors 2020-09-23 11:36:43 -04:00
get_context.go Remove clustertype-related functions 2020-10-16 11:31:58 -05:00
get_context_test.go Error messages checked expected value 2021-03-03 12:00:36 -06:00
get_management_config.go Refactor config* commands 2020-09-03 23:52:49 -05:00
get_management_config_test.go Removed K8s Authors 2020-09-23 11:36:43 -04:00
get_manifest.go Error messages checked expected value 2021-03-03 12:00:36 -06:00
get_manifest_test.go Error messages checked expected value 2021-03-03 12:00:36 -06:00
init.go Add --overwrite option to config init cmd 2020-11-14 00:52:37 +00:00
init_test.go Removed K8s Authors 2020-09-23 11:36:43 -04:00
set_context.go Revert "Adding commands to get and set encryption configs" 2021-03-10 11:30:32 -06:00
set_context_test.go Revert "Adding commands to get and set encryption configs" 2021-03-10 11:30:32 -06:00
set_management_configuration.go Add --overwrite option to config init cmd 2020-11-14 00:52:37 +00:00
set_management_configuration_test.go Remove defaults from Config object at runtime 2021-03-19 17:31:02 +00:00
set_manifest.go Refactor subPath out of config manifests 2020-11-04 09:30:03 -06:00
set_manifest_test.go Remove defaults from Config object at runtime 2021-03-19 17:31:02 +00:00
use_context.go Removed K8s Authors 2020-09-23 11:36:43 -04:00
use_context_test.go Removed K8s Authors 2020-09-23 11:36:43 -04:00