-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Federated Ingress Controller #30419
Federated Ingress Controller #30419
Conversation
CLAs look good, thanks! |
ic.ingressInformerStore, ic.ingressInformerController = framework.NewInformer( | ||
&cache.ListWatch{ | ||
ListFunc: func(options api.ListOptions) (pkg_runtime.Object, error) { | ||
return client.Extensions().Ingresses("<all-namespaces>").List(options) |
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.
should use api.NamespaceAll
?
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, agreed. I couldn't remember the correct incantation, so I added that placeholder instead :-)
}, | ||
&extensions.Ingress{}, | ||
controller.NoResyncPeriodFunc(), | ||
util.NewTriggerOnAllChanges(func(obj pkg_runtime.Object) { ic.deliverIngressObj(obj, 0, 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 still need to handle DeletedFinalStateUnknown
case?
This is ready for review now. Unit tests pass, although I'm sure we'll find some issues when tested against the new e2e tests in #29773. I will add the following in small followup PR's:
|
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
Whoops! It seems I messed up a branch merge. Until I fix that up, reviewers need only look at
|
OK, I fixed my merge mess-up. |
// error (like failure to create). | ||
type ingressItem struct { | ||
ingress string | ||
prevAttempts int64 |
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.
you probably don't need prev attempts (and this struct at all).
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.
Done.
Thanks for the review @mwielgus . I've:
PTAL. I think this is ready for LGTM now. All unit tests, and manual e2e tests passed. Automated e2e tests are lined up in #29773 which should merge in the next couple of days. |
Review status: 0 of 6 files reviewed at latest revision, 8 unresolved discussions. federation/pkg/federation-controller/ingress/ingress_controller.go, line 62 [r1] (raw file):
|
"k8s.io/kubernetes/federation/pkg/federation-controller/util" | ||
"k8s.io/kubernetes/pkg/api" | ||
"k8s.io/kubernetes/pkg/types" | ||
// api_v1 "k8s.io/kubernetes/pkg/api/v1" |
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.
remove
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.
Yup, done.
minor comments, LGTM assuming a clean-up PR is submitted shortly. |
Fixed the nit, squashed, and checked out the e2e test failure, which looks like a flake - the test cluster never came up. Applying LGTM as per review feedback above. |
Rebased. Re-applying LGTM. |
GCE e2e build/test passed for commit 97d6494. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 97d6494. |
Automatic merge from submit-queue |
Based on new federated controller libraries.
cc @kubernetes/sig-cluster-federation @mfanjie @nikhiljindal @mwielgus @mml @madhusudancs FYI
This change is