-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NOISSUE - Sync Env Veriables With Docker Deployment #1841
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1841 +/- ##
==========================================
- Coverage 67.34% 67.30% -0.05%
==========================================
Files 119 118 -1
Lines 9411 9358 -53
==========================================
- Hits 6338 6298 -40
+ Misses 2402 2392 -10
+ Partials 671 668 -3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
5a16b72
to
6437219
Compare
bc7e028
to
92bafd4
Compare
6fe986b
to
f48c057
Compare
424163f
to
4845a0c
Compare
cmd/cassandra-writer/main.go
Outdated
@@ -106,7 +107,7 @@ func main() { | |||
// Create new http server | |||
httpServerConfig := server.Config{Port: defSvcHttpPort} | |||
|
|||
if err := env.Parse(&httpServerConfig, env.Options{Prefix: envPrefix, AltPrefix: envPrefixHttp}); err != nil { | |||
if err := env.Parse(&httpServerConfig, env.Options{Prefix: envPrefixHttp, AltPrefix: envPrefix}); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rodneyosodo @dborovcanin We have planned to remove AltPrefix
everywhere
Can we remove in this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we have all the prefixes set correctly now, we can remove it in this PR.
MF_COAP_ADAPTER_SERVER_CERT= | ||
MF_COAP_ADAPTER_SERVER_KEY= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rodneyosodo , Are these two variables needed ?
because you have added MF_COAP_ADAPTER_HTTP_SERVER_CERT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. They are added already
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rodneyosodo , These two variables not used, Please double check again and remove them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have implemented it to use TLS
if they are provided
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, Got it
e8e6bdb
to
bd024de
Compare
d53bcb6
to
2997cb9
Compare
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
@arvindh123 is this one OK for merge? Please review and test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Initial Commit: Sync Env Veriables With Docker Deployment Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Sync Env Vars With Master Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Remove Altprefix Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Rename HttpPort to HTTPPort Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Fix envPrefixDB After Rebase Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Remove Server Parse Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Add Provision For TLS on CoAP Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Fix Exit After Defer Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Remove Unused Function Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Document Undocumentated Env Variables Signed-off-by: rodneyosodo <blackd0t@protonmail.com> --------- Signed-off-by: rodneyosodo <blackd0t@protonmail.com> Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Initial Commit: Sync Env Veriables With Docker Deployment Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Sync Env Vars With Master Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Remove Altprefix Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Rename HttpPort to HTTPPort Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Fix envPrefixDB After Rebase Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Remove Server Parse Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Add Provision For TLS on CoAP Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Fix Exit After Defer Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Remove Unused Function Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Document Undocumentated Env Variables Signed-off-by: rodneyosodo <blackd0t@protonmail.com> --------- Signed-off-by: rodneyosodo <blackd0t@protonmail.com> Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
What does this do?
InfluxDB
for example for timescale readers and writers the db env variable isenvPrefixDB = "MF_TIMESCALE_"
httpserverconfig
to beenvPrefixHttp
as the default andenvPrefix
as the alternativeSignRSABits
andSignHoursValid
from certs as they are not usedthings
auth
cache inmqtt
as it is not usedMF_THINGS_AUTH_GRPC_
toMF_THINGS_GRPC_
DB_
for example fromDB_CLUSTER
toCLUSTER
same as PostgresMF_(service)_HTTP_SERVER_CERT
andMF_(service)_HTTP_SERVER_KEY
as they had not been usedWhich issue(s) does this PR fix/relate to?
No issue
List any changes that modify/break current functionality
Ensure configs are passed on docker-compose file. There is no change to the functionality of the system
Have you included tests for your changes?
No
Did you document any new/modified functionality?
Yes
Notes
N/A