gce: Require zones on instancegroup creation#17849
gce: Require zones on instancegroup creation#17849k8s-ci-robot merged 4 commits intokubernetes:masterfrom
Conversation
|
Welcome @Camila-B! |
|
Hi @Camila-B. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
| allErrs = append(allErrs, IsValidValue(fieldSpec.Child("gcpProvisioningModel"), ig.Spec.GCPProvisioningModel, []string{"STANDARD", "SPOT"})...) | ||
| } | ||
|
|
||
| if len(ig.Spec.Zones) == 0 { |
There was a problem hiding this comment.
@hakman just want to confirm this would not be a breaking change?
There was a problem hiding this comment.
If it's "broken already", i.e. if you created an IG (on GCE) with no zones then bad things would happen, then it's not a breaking change. I think that is true, and I can check unless someone knows for sure?
There was a problem hiding this comment.
Confirmed that IG requires zones in the GCE API. I think in this case, the error happens before any GCE API call.
In any case, the IG creation would be broken regardless so agreed that this should not be a breaking change.
|
/assign @hakman |
|
/ok-to-test |
|
/test pull-kops-test |
63dac07 to
bb2e9a5
Compare
|
@hakman Would you be able to take a look at this? All tests are passing now. |
825dd3c to
186f316
Compare
186f316 to
4d65102
Compare
4d65102 to
6170b47
Compare
|
/retest |
|
|
||
| i++ | ||
| if i > len(targetSizes) { | ||
| if i >= len(targetSizes) { |
|
Verified that this was required anyway, so not a breaking change, and that this code works with manual testing Thanks @Camila-B (and @rramkumar1 ) /approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justinsb The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR adds a
zoneflag tokops create instancegroupand makes it mandatory for GCE clusters. It also validates in thesplitToZonesfunc that the number of zones is greater than 0.Ref: #17563