-
Notifications
You must be signed in to change notification settings - Fork 580
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
✨ Add ebs volume throughput field to v1alpha4 Volume #2468
✨ Add ebs volume throughput field to v1alpha4 Volume #2468
Conversation
Welcome @cnmcavoy! |
Hi @cnmcavoy. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. 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. |
/ok-to-test |
b81c154
to
4ef24f8
Compare
4ef24f8
to
0f357f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR 👍
A couple of small comments.
84414bb
to
7fc29c8
Compare
api/v1alpha4/awsmachine_webhook.go
Outdated
@@ -149,6 +149,14 @@ func (r *AWSMachine) validateRootVolume() field.ErrorList { | |||
allErrs = append(allErrs, field.Required(field.NewPath("spec.rootVolumeOptions.iops"), "iops required if type is 'io1' or 'io2'")) | |||
} | |||
|
|||
if r.Spec.RootVolume.Type == "gp2" && r.Spec.RootVolume.Throughput != 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't only support gp2 AFAIK.
Please take a look at the webhook validation check in this PR for gp3: https://github.com/kubernetes-sigs/cluster-api-provider-aws/pull/2496/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! you are correct, I forgot that gp2 support is provided by the legacy aws provider in kubernetes.
7a26768
to
094df80
Compare
094df80
to
e78e5df
Compare
@cnmcavoy will you have time to rebase this PR and do some changes that are in https://github.com/kubernetes-sigs/cluster-api-provider-aws/pull/2496/files? |
I have time - just to confirm, is the intent to combine the changes in your PR with those here? |
Yes and resolving the comments. |
@cnmcavoy - sorry for not following up on this. The change i made in relation to this merged so i can take a look at the fuzzing tests for you. |
5f478aa
to
920ca3c
Compare
/retest |
Hmm, maybe there's still a flake in the EKS reconciler test, though am unable to reproduce at 200 interations :( |
e2e failed because of test infra issues from the looks of things. |
Found the problem. PR'ing a fix. |
#2599 should fix the test |
This is looking good, let's squash these commits @cnmcavoy |
920ca3c
to
eb9f275
Compare
@randomvariable rebased & squashed. |
/lgtm |
For final approval: /assign sedefsavas |
/test pull-cluster-api-provider-aws-e2e-blocking |
@richardcase @sedefsavas @randomvariable if you have time, can this be approved and merged? |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: randomvariable 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 |
The removed code, introduced in kubernetes-sigs#2556, became unnecessary when equivalent code was added to the restoreInstance() function in kubernetes-sigs#2468. This code handles a subset of the cases that restoreInstances() does; namely, when both the restored and dst pointers are non-nil. The conversion tests fail if the restoreInstance() call is removed, but this code is left. They pass if this code is removed. Signed-off-by: Daniel Lipovetsky <[email protected]>
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds configurable EBS volume throughput in AWS Machine Templates.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2254
Special notes for your reviewer:
N/A