Skip to content

Commit

Permalink
feat: Rename environment variables for the sake of consistency
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
- `EDGEX_CONFIGURTION_PROVIDER` is replaced by `EDGEX_CONFIG_PROVIDER`
- `EDGEX_CONF_DIR` is replaced by `EDGEX_CONFIG_DIR`

Signed-off-by: Felix Ting <[email protected]>
  • Loading branch information
FelixTing committed Dec 7, 2022
1 parent 249f27d commit a16b82a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bootstrap/config/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
)

const (
envKeyConfigUrl = "EDGEX_CONFIGURATION_PROVIDER"
envKeyConfigUrl = "EDGEX_CONFIG_PROVIDER"
goodUrlValue = "consul.http://localhost:8500"
badUrlValue = "Not a url"

Expand Down
4 changes: 2 additions & 2 deletions bootstrap/environment/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ const (
bootRetrySecondsDefault = 1
defaultConfDirValue = "./res"

envKeyConfigUrl = "EDGEX_CONFIGURATION_PROVIDER"
envKeyConfigUrl = "EDGEX_CONFIG_PROVIDER"
envKeyUseRegistry = "EDGEX_USE_REGISTRY"
envKeyStartupDuration = "EDGEX_STARTUP_DURATION"
envKeyStartupInterval = "EDGEX_STARTUP_INTERVAL"
envConfDir = "EDGEX_CONF_DIR"
envConfDir = "EDGEX_CONFIG_DIR"
envProfile = "EDGEX_PROFILE"
envFile = "EDGEX_CONFIG_FILE"

Expand Down

0 comments on commit a16b82a

Please sign in to comment.