Comments (3)
Agreed this incorrect. But it is still working for most part because the passed in key is only used to checking for existence in Consul. It uses the passed in struct to un-marshal the TOML. What we'll see is it always pushes config to Consul, which I just confirmed.
level=INFO ts=2022-06-21T19:26:02.7648941Z app=app-rfid-llrp-inventory source=config.go:229 msg="Checking if custom configuration ('Aliases') exists in Configuration Provider"
level=INFO ts=2022-06-21T19:26:02.7708223Z app=app-rfid-llrp-inventory source=config.go:391 msg="Loaded custom configuration from ./res/configuration.toml"
level=INFO ts=2022-06-21T19:26:02.8095057Z app=app-rfid-llrp-inventory source=config.go:270 msg="Custom Config loaded from file and pushed to Configuration Provider "
The result of this is any changes made to existing custom setting in Consul will be overwritten when the service restarts, :-(
But since Aliases is empty in the TOML file, they don't get overridden. Just the values in [AppCustom.AppSettings]
from app-rfid-llrp-inventory.
@ajcasagrande , the better example of using Custom Configuration is here:
https://github.com/edgexfoundry/app-functions-sdk-go/blob/main/app-service-template/main.go#L74-L98
from app-rfid-llrp-inventory.
The workaround for this bug is to set this values via Env Overrides such as APPCUSTOM_APPSETTINGS_AGEOUTHOURS=5
from app-rfid-llrp-inventory.
Related Issues (20)
- [LLRP] Migrate LLRP App service to V2
- [LLRP] Remove Mock CommandClient (Kamakura) HOT 1
- [LLRP] Use Background Publisher to send Inventory Events
- [LLRP] Remove epoch-helper.go and just use time package
- [LLRP App] Update snaps for a Jakarta Release HOT 1
- [LLRP App] Add "make lint" target and add to "make test" target
- [LLRP] Security: Implement CGO binary hardening HOT 1
- [LLRP] Enable Metrics collection
- [LLRP] Add LLRP Inventory specific service metrics HOT 1
- [LLRP] Enable Delayed Start Services
- [LLRP] Update Attribution.txt for new Paho MQTT License
- [LLRP] Remove ZMQ
- [LLRP] Update config for Trigger/MessagQueue config changes
- Adjust App LLRP for Common Config
- [WIP BUG] HTML Pages still using V2 endpoints.
- [App LLRP] Subscribe topic for ReaderEventNotification incorrect
- [LLRP] Discovery command on RRFID gateway gives error with status code 202 HOT 1
- Replace the use of pkg/errors module with errors
- [App LLRP] Replace use of Gorilla/Mux with Echo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from app-rfid-llrp-inventory.