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

Shared variables with multiple variable files #187

Open
boro2g opened this issue Aug 22, 2022 · 1 comment
Open

Shared variables with multiple variable files #187

boro2g opened this issue Aug 22, 2022 · 1 comment
Labels
discussion Tickets that are open for discussion enhancement New feature or request

Comments

@boro2g
Copy link

boro2g commented Aug 22, 2022

Is your proposal related to a problem?

As per discussion with TimL, in our project we're using a SOPS encoded variables file for secrets, but would also like to benefit from shared (non-secret) values we can apply to multiple components.

Examples would be things like common urls which need to be available in multiple components. One hackfix is to add a new component which exposes all the shared variables, which then exposes each as an output

Some gotchas

  • which value takes priority if variables clash
@tleguijt tleguijt added enhancement New feature or request discussion Tickets that are open for discussion labels Aug 22, 2022
@mvantellingen
Copy link
Contributor

I see no reason to not support multiple variable files.
E.g.: mach-composer apply --var-file=config1.yml --var-file=config2.yml

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

No branches or pull requests

3 participants