Skip to content
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

aws: Use EnsureTask to reference shared target groups #14737

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

hakman
Copy link
Member

@hakman hakman commented Dec 7, 2022

This optimises the way we reference shared (external) target groups by using EnsureTask() instead of pre-pending the autoscaling group name.

Ref: #10335

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 7, 2022
@k8s-ci-robot k8s-ci-robot added the area/provider/aws Issues or PRs related to aws provider label Dec 7, 2022
@k8s-ci-robot k8s-ci-robot requested a review from zetaab December 7, 2022 12:06
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 7, 2022
@hakman
Copy link
Member Author

hakman commented Dec 7, 2022

/cc @rifelpet

@k8s-ci-robot k8s-ci-robot requested a review from rifelpet December 7, 2022 12:08
@hakman
Copy link
Member Author

hakman commented Dec 7, 2022

/test pull-kops-e2e-k8s-ci-ha

@hakman hakman added the kind/bug Categorizes issue or PR as related to a bug. label Dec 7, 2022
Lifecycle: b.Lifecycle,
ARN: extLB.TargetGroupARN,
Shared: fi.PtrTo(true),
}
t.TargetGroups = append(t.TargetGroups, tg)
c.AddTask(tg)
c.EnsureTask(tg)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to check the returned error.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@hakman hakman force-pushed the fix_control-plane_tgs branch from 2b9b9ab to 0c020cb Compare December 7, 2022 16:37
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 7, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johngmyers

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 7, 2022
@hakman hakman changed the title Use EnsureTask to reference shared target groups aws: Use EnsureTask to reference shared target groups Dec 7, 2022
@k8s-ci-robot k8s-ci-robot merged commit a09154f into kubernetes:master Dec 7, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.26 milestone Dec 7, 2022
@hakman hakman deleted the fix_control-plane_tgs branch December 7, 2022 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/provider/aws Issues or PRs related to aws provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants