-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
pkg/tfvars: Respect install-config AWS machine pools #1076
pkg/tfvars: Respect install-config AWS machine pools #1076
Conversation
Before this commit, this section would clobber any config.AWS properties which had been set up while iterating over machine pools. I'd introduced that bug in 619db92 (pkg/types/config: Break into pkg/validate and pkg/tfvars, 2018-10-03, openshift#412), before which this section ran before the machine-pool iteration, so there had been nothing to clobber.
looks good to me |
Any reason to hold this, @abhinavdahiya, @crawford? Even if the freeze is still effective (I'm not sure), this would qualify as a bugfix. |
/approve |
/hold /cc @crawford for approval |
@abhinavdahiya: GitHub didn't allow me to request PR reviews from the following users: for, approval. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This is a pretty simple change and is clearly a bug-fix. I'm fine merging. /hold cancel |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, wking The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
and more. /retest |
…aults Since 9a9cd6d (origin/pr/1076) pkg/tfvars: Respect install-config AWS machine pools, 2019-01-15, openshift#1076) and cbad1a4 (Add size and type support for aws volumes, 2019-01-16, openshift#1079), we should always be providing these in the Terraform variables generated by the asset graph.
…aults Since 9a9cd6d (pkg/tfvars: Respect install-config AWS machine pools, 2019-01-15, openshift#1076) and cbad1a4 (Add size and type support for aws volumes, 2019-01-16, openshift#1079), we should always be providing these in the Terraform variables generated by the asset graph.
…aults Since 9a9cd6d (pkg/tfvars: Respect install-config AWS machine pools, 2019-01-15, openshift#1076) and cbad1a4 (Add size and type support for aws volumes, 2019-01-16, openshift#1079), we should always be providing these in the Terraform variables generated by the asset graph.
…aults Since 9a9cd6d (pkg/tfvars: Respect install-config AWS machine pools, 2019-01-15, openshift#1076) and cbad1a4 (Add size and type support for aws volumes, 2019-01-16, openshift#1079), we should always be providing these in the Terraform variables generated by the asset graph. There's still a default for the bootstrap machine, but we plan on removing that from Terraform shortly.
Since 9a9cd6d (pkg/tfvars: Respect install-config AWS machine pools, 2019-01-15, openshift#1076) and cbad1a4 (Add size and type support for aws volumes, 2019-01-16, openshift#1079), we should always be providing these in the Terraform variables generated by the asset graph. There's still a default for the bootstrap machine, but we plan on removing that from Terraform shortly. Dropping omitempty for the master IOPS allows the zero value (if IOPS is nil or zero in the machine config) to generate a non-empty Terraform value, avoiding: Error: Required variable not set: aws_master_root_volume_iops" I've left omitempty on the other AWS properties, because in most cases their zero values will not produce a functional cluster and we want to fail fast. In the user-tags case, we have a sane (empty set) default, so omitting the nil map is fine.
Before this commit, this section would clobber any
config.AWS
properties which had been set up while iterating over machine pools. I'd introduced that bug in 619db92 (#412), before which this section ran before the machine-pool iteration, so there had been nothing to clobber.We'll need this fixed if we want to take the CI-special-case approach in #1069 (e.g. here). #792 will probably obsolete this code anyway, but this was a pretty straightforward stopgap, and it's good to acknowledge the bug.
CC @abhinavdahiya, @crawford, @smarterclayton, @staebler