Skip to content

Consider deprioritizing the environment variable provider #2584

@kate-goldenring

Description

@kate-goldenring

In spin, application variables can be configured from multiple providers; however, the environment variable provider will always take precedence. This is odd given that it is the most static of the providers.
It takes precedence because it is always at the top of the list of providers and the resolve_variable function loops through providers until it gets a value, so providers listed higher up in runtime config get higher precedence.

We could simply append the environment variable provider to the end of the list of providers to reduce it's precedence

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions