-
Notifications
You must be signed in to change notification settings - Fork 610
✨ Refactor to consolidate into LaunchTemplateNeedsUpdate #5511
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
base: main
Are you sure you want to change the base?
✨ Refactor to consolidate into LaunchTemplateNeedsUpdate #5511
Conversation
Skipping CI for Draft Pull Request. |
[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 |
e05bf8e
to
da6c2fe
Compare
/test pull-cluster-api-provider-aws-e2e |
da6c2fe
to
df5b167
Compare
/test pull-cluster-api-provider-aws-e2e |
df5b167
to
ca499fa
Compare
/test pull-cluster-api-provider-aws-e2e |
/retest |
1 similar comment
/retest |
ca499fa
to
2638a92
Compare
/retest |
/test pull-cluster-api-provider-aws-e2e |
@@ -749,60 +749,6 @@ func TestAWSMachinePoolReconciler(t *testing.T) { | |||
g.Expect(err).To(Succeed()) | |||
}) | |||
|
|||
t.Run("launch template and ASG exist and only AMI ID changed", func(t *testing.T) { |
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 is now tested inside the LaunchTemplateNeedsUpdate
function.
/test pull-cluster-api-provider-aws-e2e |
/test pull-cluster-api-provider-aws-e2e |
1 similar comment
/test pull-cluster-api-provider-aws-e2e |
@fiunchinho - if you rebase on main then hopefully the e2e will pass. Ping me if they don't. |
2638a92
to
394743e
Compare
/test pull-cluster-api-provider-aws-e2e |
1 similar comment
/test pull-cluster-api-provider-aws-e2e |
@richardcase It looks like something is wrong with the webhooks, I can't seem to be able to trigger the e2e tests. |
Looks like the multi-tenancy test is still failing. I will investigate. |
/test pull-cluster-api-provider-aws-e2e |
/test ? |
@richardcase: 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-sigs/prow repository. |
/test pull-cluster-api-provider-aws-e2e-eks |
/test pull-cluster-api-provider-aws-e2e |
Re-running the e2e as we hit the invalid security context error /test pull-cluster-api-provider-aws-e2e |
/retest |
394743e
to
b655bef
Compare
/test pull-cluster-api-provider-aws-e2e |
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-sigs/prow repository. |
@fiunchinho: The following tests 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-sigs/prow repository. I understand the commands that are listed here. |
What type of PR is this?
/kind design
What this PR does / why we need it:
We have a function called
LaunchTemplateNeedsUpdate
that checks differentLaunchTemplate
fields in the existing Launch Template and the incoming one, to decide whether or not we need a new version of the Launch Template. Outside of this function, we are also checking other fields, making code a bit confusing, and requiring some extra variables that we need to always check together to finally decide if a new Launch Template version is needed.With these changes, we move as much code as possible into
LaunchTemplateNeedsUpdate
so that everything is in the same place.Special notes for your reviewer:
I also renamed some variables to make the code easier to read.
Checklist:
Release note: