Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support environment variables for Dapr Sidekick settings #9

Closed
badgeratu opened this issue Jun 20, 2021 · 0 comments · Fixed by #14
Closed

Support environment variables for Dapr Sidekick settings #9

badgeratu opened this issue Jun 20, 2021 · 0 comments · Fixed by #14
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@badgeratu
Copy link
Contributor

Describe the feature

It should be possible to use environment variables to configure some/all of the Dapr Sidekick settings such that any environment variable prefixed with DAPRSIDEKICK_ (say) could be read on startup and mapped to configuration values.

As an example, it may be desirable to disable Dapr Sidekick entirely in a container deployed scenario, such that Sidekick is used for a seamless development and debugging experience in Visual Studio but on deployment is disabled in containers. This can currently be achieved by modifying the appsettings.json to set the top-level Enabled setting to false:

{
  "Dapr": {
    "Enabled": false
  }
 }

However some orchestration platforms (or docker compose) might prefer to set an environment variable such as DAPRSIDEKICK_ENABLED=false to achieve the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant