-
Notifications
You must be signed in to change notification settings - Fork 38
[WIP][OCPCLOUD-1381] Implement AWS Placement Group support and creation #16
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
Conversation
elmiko
left a comment
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.
this generally makes sense to me, i just have one minor question
pkg/actuators/machine/instances.go
Outdated
| func isAWS4xxError(err error) bool { | ||
| if _, ok := err.(awserr.Error); ok { | ||
| if reqErr, ok := err.(awserr.RequestFailure); ok { | ||
| if strings.HasPrefix(strconv.Itoa(reqErr.StatusCode()), "4") { |
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.
do we need to convert the int to ascii here, couldn't we just check StatusCode() >= 400 && StatusCode() < 500?
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.
This was just copied from https://github.com/openshift/machine-api-provider-aws/pull/16/files#diff-c5079a7c5d2916c3661d0c44d1267050b3496c40b4530363d3825d66af581b6fR376, but you're right, that would make more sense, I'll update it
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.
no worries, i just thought converting to ascii seemed like a needless use of cycles
elmiko
left a comment
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 the update, i'm good with this.
/approve
5b8d232 to
3fe0576
Compare
alexander-demicev
left a comment
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.
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexander-demichev, elmiko 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 |
540256d to
f01a4d1
Compare
f01a4d1 to
fb83850
Compare
|
@JoelSpeed: The following tests failed, say
Full PR test history. Your PR dashboard. 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/test-infra repository. I understand the commands that are listed here. |
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
@JoelSpeed: PR needs rebase. 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/test-infra repository. |
|
This was superseded by other work |
This PR implements the changes required to allow users to add Machines to placement groups.
Additionally, should the placement group not exist, this PR allows the provider to create the placement group based on some pre-existing configuration within the placement struct.
This is currently blocked on openshift/api#1091, hence being marked WIP