GithubHelp home page GithubHelp logo

Comments (2)

TimHess avatar TimHess commented on August 26, 2024

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.

thompson-tomo avatar thompson-tomo commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.