Skip to content

Commit

Permalink
rename APP_PROVIDER_BASIC_* environment variables, followup of #2811
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed Nov 24, 2021
1 parent 094fcda commit c533379
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions changelog/unreleased/change-rename-app-provider-env.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Change: Rename `APP_PROVIDER_BASIC_*` environment variables

We've renamed the `APP_PROVIDER_BASIC_*` to `APP_PROVIDER_*` since
the `_BASIC_` part is a copy and paste error. Now all app provider
environment variables are consistently starting with `APP_PROVIDER_*`.

https://github.com/owncloud/ocis/pull/2812
https://github.com/owncloud/ocis/pull/2811
8 changes: 4 additions & 4 deletions storage/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1075,19 +1075,19 @@ func structMappings(cfg *Config) []shared.EnvBinding {
// app provider

{
EnvVars: []string{"APP_PROVIDER_DEBUG_ADDR", "APP_PROVIDER_BASIC_DEBUG_ADDR"}, // TODO: remove env containing _BASIC_
EnvVars: []string{"APP_PROVIDER_DEBUG_ADDR"},
Destination: &cfg.Reva.AppProvider.DebugAddr,
},
{
EnvVars: []string{"APP_PROVIDER_GRPC_NETWORK", "APP_PROVIDER_BASIC_GRPC_NETWORK"}, // TODO: remove env containing _BASIC_
EnvVars: []string{"APP_PROVIDER_GRPC_NETWORK"},
Destination: &cfg.Reva.AppProvider.GRPCNetwork,
},
{
EnvVars: []string{"APP_PROVIDER_GRPC_ADDR", "APP_PROVIDER_BASIC_GRPC_ADDR"}, // TODO: remove env containing _BASIC_
EnvVars: []string{"APP_PROVIDER_GRPC_ADDR"},
Destination: &cfg.Reva.AppProvider.GRPCAddr,
},
{
EnvVars: []string{"APP_PROVIDER_EXTERNAL_ADDR", "APP_PROVIDER_BASIC_EXTERNAL_ADDR"}, // TODO: remove env containing _BASIC_
EnvVars: []string{"APP_PROVIDER_EXTERNAL_ADDR"},
Destination: &cfg.Reva.AppProvider.ExternalAddr,
},
{
Expand Down

0 comments on commit c533379

Please sign in to comment.