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

pubsys: change "parameter overrides" to "conditional parameters" #1067

Merged
merged 1 commit into from
Aug 24, 2020

Conversation

tjkirch
Copy link
Contributor

@tjkirch tjkirch commented Aug 24, 2020

Rather than template directories with override files for specific variants and
architectures, this uses a single TOML file for all parameters with (optional)
keys restricting parameters to specific variants and arches.

This model is clearer, based on early feedback, and also allows users to
specify parameters that are conditional to a variant *and* an architecture,
whereas the override files were more like "or" matches.

Note: based on #1060.

Testing done:

I added parameters specific to current arch, to another arch, to current variant, to another variant, to lists of variants/arches separately, to lists of variants/arches together (for matching and non-matching combinations), and overall saw the expected behavior as described in the updated README.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@tjkirch tjkirch requested review from bcressey and zmrow August 24, 2020 04:28
Copy link
Contributor

@zmrow zmrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍘

@tjkirch tjkirch changed the base branch from pubsys-ssm to develop August 24, 2020 23:27
Rather than template directories with override files for specific variants and
architectures, this uses a single TOML file for all parameters with (optional)
keys restricting parameters to specific variants and arches.

This model is clearer, based on early feedback, and also allows users to
specify parameters that are conditional to a variant *and* an architecture,
whereas the override files were more like "or" matches.
@tjkirch tjkirch force-pushed the ssm-conditional-params branch from 7f376dc to 7a65061 Compare August 24, 2020 23:37
@tjkirch
Copy link
Contributor Author

tjkirch commented Aug 24, 2020

^ trivial rebase on develop.

@tjkirch tjkirch merged commit 7b3dcb5 into bottlerocket-os:develop Aug 24, 2020
@tjkirch tjkirch deleted the ssm-conditional-params branch August 24, 2020 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants