fix: align storage metadata GPRC bind port with other variable names #3169
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Currently STORAGE_METADATA_GRPC_PROVIDER_ADDR environment variable used as the way to set the GRPC bind port for the service. All other services use the format <SERVICE_NAME>_GRPC_ADDR for GRPC, and <SERVICE_NAME>_HTTP_ADDR for HTTP.
Motivation and Context
This change brings it in line with the others, as it's confusing why this one is different.
How Has This Been Tested?
Simple test is to run the following:
docker run -d --name ocis -e OCIS_RUN_EXTENSIONS="storage-metadata" -e STORAGE_METADATA_GRPC_ADDR="0.0.0.0:9215" owncloud/ocis
Check port this service is bound to (expect it to bind to external address):
docker exec -it ocis /usr/bin/nc -zv 172.17.0.2:9215
Expect to see:
172.17.0.2:9215 (172.17.0.2:9215) open
Types of changes
This is possibly a breaking change but a search of the source code finds no specific references to this variable anywhere.
Checklist: