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

refactor: wait for load balancer readiness using a private field #16294

Merged

Conversation

justinsb
Copy link
Member

This approach is more explicit than looking at the names of the target
groups, and using a private field is simpler.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. area/provider/aws Issues or PRs related to aws provider labels Jan 29, 2024
This approach is more explicit than looking at the names of the target
groups, and using a private field is simpler.
@justinsb
Copy link
Member Author

Looks like a known flake kubernetes/kubernetes#122333

I was worried tht if this was the first test to run, it might be an error with the "wait for ready" logic. But it wasn't, it was about 8 minutes into the test run.

/retest

@hakman
Copy link
Member

hakman commented Jan 30, 2024

@justinsb Wouldn't it be simpler to just always wait for NLB?
It was an optimisation, but we can live without it.

@justinsb
Copy link
Member Author

Wouldn't it be simpler to just always wait for NLB?
It was an optimisation, but we can live without it.

I'm fine with that if that's what we want to do. It does take a while, but I figure people are going to be waiting anyway...

The important end-goal here is to get rid of the TargetGroups field (notice they aren't really used once we split out listeners!), so we can version them based on the LoadBalancer version. I also wanted to experiment with the idea of private fields for internal options, they don't get diffed etc so they're a little easier to work with (no need to sync actual & expected, won't show up in dry-run output). Because they're private we do have to set them via a method but ... that seems like a good trade-off.

In this particular case though, I don't mind either way - as long as we stop using TargetGroups!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 1, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

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 Feb 1, 2024
@k8s-ci-robot k8s-ci-robot merged commit 1067b62 into kubernetes:master Feb 2, 2024
21 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.29 milestone Feb 2, 2024
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants