Coder Social home page Coder Social logo

Comments (6)

lann avatar lann commented on July 22, 2024 1

This sounds like the kind of small, technically-breaking-but-probably-low-impact changes that would be good for a 3.0

from spin.

kate-goldenring avatar kate-goldenring commented on July 22, 2024

This priority of providers is not documented, so i have a PR up to at least describe the current state: fermyon/developer#1322

from spin.

itowlson avatar itowlson commented on July 22, 2024

My guess is that the thought behind the order was that a user writing SPIN_VARIABLE_DB_ADDR=foo spin up should get the behaviour they (thought they) asked for, even if another provider was in play.

from spin.

lann avatar lann commented on July 22, 2024

That was my intent, but in some sense environment variables are generally going to be "more static" than say vault, so it does make some sense for it to be lower priority.

from spin.

itowlson avatar itowlson commented on July 22, 2024

I don't really get the "more static" argument. To me the criterion is more like "more explicit." Although I do get that an "ambient" EV is not very explicit, and we can't tell that apart from a "provided on the line with the command" EV... And since --runtime-config-file is always explicit, any "provided on the line" EV is arguably setting itself up for ambiguity anyway!

from spin.

lann avatar lann commented on July 22, 2024

The "staticness" argument is just a pragmatic one: you only get to update env vars when you restart the process, but you can update e.g. vault much more frequently; it is just more useful for the more-frequently-updatable provider to have higher precedence rather than being masked by the the lass-frequently-updatable provider.

from spin.

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.