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
Predicate cacheing and cleanup #33763
Predicate cacheing and cleanup #33763
Conversation
bd1866a
to
a2bc2c7
Compare
d876b28
to
32c4431
Compare
@k8s-bot gke e2e test this. |
1 similar comment
@k8s-bot gke e2e test this. |
@k8s-bot gke test this kubernetes/test-infra#709 |
still not sure why e2es are dying here |
So instead of breaking it up into functional objects, why not create a series of well defined utility functions? I see most of those f(n)'s as being generally useful and it would also be easier to read. |
Broader context for Utils, data access patterns and so on. Bee have something like a dao wrapper query lib in e2e/federated/... maybe time to bump it to core if the same thing doesn't already exist there? |
1e81963
to
d47d3fb
Compare
heres another impl. Shud be passing assume failures are flakes |
d9ef54b
to
db7e0f2
Compare
ok i added unit tests |
43fc84f
to
1174f4c
Compare
3f519c4
to
b96cf3a
Compare
|
@@ -91,10 +91,6 @@ func (f FakeServiceLister) GetPodServices(pod *api.Pod) (services []*api.Service | |||
services = append(services, service) | |||
} | |||
} | |||
if len(services) == 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.
This makes the if err == nil check which woj suggested less noisy,and more importantly makes it so semantics conform to the other GetPodsServices tests.
b5bad40
to
751fa4f
Compare
751fa4f
to
6fe77cb
Compare
Jenkins verification failed for commit 6fe77cb. Full PR test history. The magic incantation to run this job again is |
Jenkins GKE smoke e2e failed for commit 6fe77cb. Full PR test history. The magic incantation to run this job again is |
Jenkins GCI GKE smoke e2e failed for commit 6fe77cb. Full PR test history. The magic incantation to run this job again is |
6fe77cb
to
cf833be
Compare
Jenkins unit/integration failed for commit cf833be. Full PR test history. The magic incantation to run this job again is |
im giong to dig into the right semantics to keep for now wrt serices/ for now the unit test wont pass. |
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.
Few more (mostly minor) comments.
cf833be
to
e7fe19d
Compare
4ae15dd
to
9aa982f
Compare
9aa982f
to
9b1c14e
Compare
Comments addressed, Make emptyMetadataProducer a func to avoid casting, FakeSvcLister: remove error return for len(svc)=0. New test for predicatePrecomp to make method semantics explictly enforced when meta is missing. Precompute wrapper.
9b1c14e
to
08cff01
Compare
/lgtm (I'm assuming that tests will pass) |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
Fix to #31795
First pass @ cleanup and caching of the CheckServiceAffinity function.
The cleanup IMO is necessary because the logic around the pod listing and the use of the "implicit selector" (which is reverse engineered to enable the homogenous pod groups).
Should still pass the E2Es.
@timothysc @wojtek-t
This change is