-
Notifications
You must be signed in to change notification settings - Fork 579
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
[WIP] Use availabilityZones provided in AWSMachinePool when creating ASG #3245
Conversation
@shivi28: This issue is currently awaiting triage. If CAPA/CAPI contributors determines this is a relevant issue, they will accept it by applying the The 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
99d8c8b
to
ee40a77
Compare
/hold |
Co-authored-by: anvddriesch Co-authored-by: Shivani Singhal <[email protected]>
/unhold |
/test ? |
@shivi28: The following commands are available to trigger required jobs:
The following commands are available to trigger optional jobs:
Use
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. |
/test pull-cluster-api-provider-aws-e2e-eks |
Looping @richardcase to have a look at this PR as we had a initial discussion on this issue 🙇♀️ |
return existing[i] < existing[j] | ||
}) | ||
|
||
return reflect.DeepEqual(input, existing) |
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.
Since we have a PR in place to replace this with gocmp, it would be good to follow that for new PRs, wdyt?
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.
Yes we should change this to use cmp.Equal
return existing[i] < existing[j] | ||
}) | ||
|
||
return reflect.DeepEqual(input, existing) |
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.
Shouldn't this be !reflect.DeepEqual(input, existing)
, coz if both are same we won't need the update?
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.
Yes, good spot @Ankitasw
@shivi28: PR needs rebase. 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. |
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 you think it would also be worth ensuring we cover both scenarios in the e2e tests?
@@ -150,4 +150,7 @@ func (r *AWSMachinePool) Default() { | |||
log.Info("DefaultCoolDown is zero, setting 300 seconds as default") | |||
r.Spec.DefaultCoolDown.Duration = 300 * time.Second | |||
} | |||
if len(r.Spec.AvailabilityZones) == 1 && r.Spec.AvailabilityZones[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.
Do we see this situation?
return existing[i] < existing[j] | ||
}) | ||
|
||
return reflect.DeepEqual(input, existing) |
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.
Yes we should change this to use cmp.Equal
return existing[i] < existing[j] | ||
}) | ||
|
||
return reflect.DeepEqual(input, existing) |
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.
Yes, good spot @Ankitasw
+1 to add the scenarios in the PR definition to e2e tests. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/milestone clear |
@shivi28: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. 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. |
What type of PR is this?
What this PR does / why we need it:
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 #2320
Special notes for your reviewer:
Tested scenarios:
unable to update ASG. The availability zones of the specified subnets and the Auto Scaling group do not match
Checklist:
Release note: