Comments (2)
I believe Steeltoe's Config Server client was created with the viewpoint that ASPNETCORE_ENVIRONMENT
was effectively equivalent to profiles, though lacking support for multiple active values. I suspect that proper support for multiple active profiles would be larger than we can stuff inside a config provider, but that would probably also be required to make the env endpoint work the way you are expecting (since it is also bound by the IConfiguration
family of interfaces and has no dependency on our config server client)
Multiple active profiles is an interesting idea that I would not permanently rule out, but we are not likely to make progress on it in the next few months. Changing the default value to Default
could put us a bit at odds with using ASPNETCORE_ENVIRONMENT
if we don't do it right.
In the absence of the exact functionality you're after, is it workable to use the Environment setting to get the config profiles you need?
from steeltoe.
Hmm,I suspect I would run in to a couple of issues due to the fact I am running multiple micro services on the same VM with potential different profiles needed.
What I see as the options would be:
- Due to me using a custom config server endpoint I could define my profiles on the server & then use that to build the necessary config properties. Note a nice solution.
- contributing to steeltoe the necessary changes in stages
-
- in v4 branch change default profile to "Default,{{Environment}}" due to it being viewed as a breaking change
-
- read active profiles from config and replace the default in request (use this issue)
-
- implementation of the 2 step process (use issue #1295) - v4 branch only
-
- adjust the environment endpoint (create new issue)
I suspect for me it would be more beneficial/easier to tackle this at the root rather than try and work around it.
If you support this idea I can work through this.
Note I am currently at cross roads with my project hence why I have spent so much time on it over the weekends with the key thing being ensuring I am able to obtain easily obtain all the necessary config without implementing to many workarounds.
from steeltoe.
Related Issues (20)
- Only the first label is being processed HOT 5
- [QUESTION] Using Microsoft.Extensions.Logging with Config Server HOT 2
- Libraries should have a strong name HOT 7
- System.InvalidOperationException: ValueFactory attempted to access the Value property of this instance HOT 2
- Schemas for Eureka should be extracted & become public HOT 1
- Implementation of Eureka LeaseInfo timestamp HOT 6
- Eureka service registration occurring for the wrong port. HOT 4
- Requests to /cloudfoundryapplication possibly return results for /actuator HOT 1
- 2 step import not happening HOT 2
- Configuration properties sections are case sensitive HOT 6
- When eureka registration is occuring the app name is empty in the payload HOT 7
- Port information is not transferred as part of body request HOT 5
- Mappings endpoint should return parameters for url HOT 1
- Using steeltoe connectors with EasyNetQ is awkward. HOT 6
- V4 Connectors usage pattern is too intrusive HOT 3
- Implementation of distributed tracing
- Remove IFileProvider overload on ConfigureCertificateOptions HOT 1
- Allow changing the header used for certificate auth
- Config server URLs appear encoded in logs HOT 1
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 steeltoe.