-
Notifications
You must be signed in to change notification settings - Fork 3
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 config from files and env vars in addition to flags #49
Comments
cc @verbanicm , I'm starting work on this |
After discussing with @sethvargo, we decided to wait to wait to build support for file-based and env-var-based inputs until we have a customer need for this, not counting our own team. |
Discussed with Dave on chat. Decision: We'll support a config file for exclusively the input variables i.e. e.g.
Running the following command
is effectively the same as
Update: see #49 (comment) For precedence order , I'm considering following ssh.config's example.
|
cc @sethvargo @verbanicm @dcreey this effort is starting up again, led by @stytchiz. The rationale is that our two main customers, Mike and Dylan, both want it, and much of the work will be reusable for #191. |
My use case is that we generate a root project location in our repo using a template. This process creates a lot of resources that we need to expose downstream for other templates. Each downstream template creates new resources in sub folders (we are creating deployments, experimental projects, and deployment-resources at the x-project level). As long as we can specify which input configs to use in a command via cli flag the proposed design should be sufficient. If you aren't planning on adding a flag to specify input config path please do. |
|
Nice, thanks Stanley. This was released in v0.2.1 and is ready to be used (cc @dcreey who wanted to use it) |
TL;DR
In the original design doc, we decided to allow all options to be provided by flag, config file, or environment variables. Currently we only support flags, so we need to add support for the other methods.
Config file support is needed for #46.
Detailed design
No response
Alternatives considered
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: