From f0cd4eda7020d5e86576b480fb0804a1016453ed Mon Sep 17 00:00:00 2001 From: Leonard Goodell Date: Wed, 30 Nov 2022 17:34:55 -0700 Subject: [PATCH 1/2] refactor!: Change Config stem constants to flatten config layout BREAKING CHANGE: Location of service configuartion in Config Provider (Consul) has changed closes #775 Signed-off-by: Leonard Goodell --- common/constants.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/common/constants.go b/common/constants.go index b78e50f5..a963b039 100644 --- a/common/constants.go +++ b/common/constants.go @@ -305,8 +305,9 @@ const ( ) const ( - ConfigStemApp = "edgex/appservices/" - ConfigStemCore = "edgex/core/" - ConfigStemDevice = "edgex/devices/" - ConfigStemSecurity = "edgex/security/" + ConfigStemAll = "edgex/3.0" + ConfigStemApp = ConfigStemAll + ConfigStemCore = ConfigStemAll + ConfigStemDevice = ConfigStemAll + ConfigStemSecurity = ConfigStemAll ) From 78cc9290562f0233414b7a96b68390eea5b4e4de Mon Sep 17 00:00:00 2001 From: Leonard Goodell Date: Mon, 5 Dec 2022 13:22:22 -0700 Subject: [PATCH 2/2] refactor: Changed config version from 3.0 to v3 Signed-off-by: Leonard Goodell --- common/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/constants.go b/common/constants.go index a963b039..6ab5a64f 100644 --- a/common/constants.go +++ b/common/constants.go @@ -305,7 +305,7 @@ const ( ) const ( - ConfigStemAll = "edgex/3.0" + ConfigStemAll = "edgex/v3" // Version never changes during minor releases so v3 is more appropriate than 3.0 ConfigStemApp = ConfigStemAll ConfigStemCore = ConfigStemAll ConfigStemDevice = ConfigStemAll