-
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
fix: remove check for root volume device name on create #3798
fix: remove check for root volume device name on create #3798
Conversation
5644e4b
to
b32dab3
Compare
1862f6e
to
3aaa38f
Compare
@@ -192,10 +192,6 @@ func (r *AWSMachine) validateRootVolume() field.ErrorList { | |||
} | |||
} | |||
|
|||
if r.Spec.RootVolume.DeviceName != "" { |
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.
How about we log this info and not return error?
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.
Good idea! Updated :)
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
3aaa38f
to
318e1a5
Compare
/test pull-cluster-api-provider-aws-e2e-blocking |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Ankitasw 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 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
clusterctl move
currently fails if trying to move anAWSMachinePool
that have it'srootVolume
already populated.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 #3624
Special notes for your reviewer:
From what I can tell, the RootVolume device name is actually retrieved from the AMI image and the value in the
Spec
isn't used (only populated after creating).See:
cluster-api-provider-aws/pkg/cloud/services/ec2/instances.go
Lines 926 to 942 in 7440d3e
Checklist: