-
Notifications
You must be signed in to change notification settings - Fork 302
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
Pull out SIGTERMHandler, flag-gate ingress and firewall controller, and run L7 NEG as default #2414
Conversation
Hi @sawsa307. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
ecdaa6b
to
44a6866
Compare
/ok-to-test |
05f35f1
to
ef15997
Compare
ef15997
to
68d6b08
Compare
bb82839
to
fc0943d
Compare
/hold |
fc0943d
to
0d8aed6
Compare
3383af8
to
775e6fa
Compare
775e6fa
to
d687b7a
Compare
/unhold |
80b4d97
to
1946595
Compare
1946595
to
483ea30
Compare
cmd/glbc/main.go
Outdated
go func() { | ||
defer close(doneCh) | ||
// Wait until related controllers are done with cleanup. | ||
// If Ingress controller is not running, the program will exit immediately |
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.
does this comment still apply?
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.
No it should not, I'll remove this.
LGTM, just needs to be rebased with the other PRs before this can merge. |
…ine. * Currently, SIGTERMHandler triggers stopCh closes by calling lbc.Stop(). * We want to make SIGTERMHandler works regardless of whether ingress controller is running. * Thus, now in the handler, we close stopCh instead of calling lbc.Stop(). * Also, ingress controller will run in its own goroutine like other controllers so it can be properly turned off if needed. * In main.go, we will wait on the stopCh after starting all controllers so the binary won't exit early. * Create closeStopCh function to make sure stopCh is only closed once.
483ea30
to
b834677
Compare
/retest |
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.
couple nits on logging, otherwise LGTM.
Thanks!
* Add a waitGroup in runControllers to make sure when Ingress controller is not running, other controllers(NEG controller) have time to finish cleanng up. * This is particularly necessary if NEG controller is separated from other controllers.
* Update run-ingress-controller flag description. * Flag-gate ingress and firewall controller using run-ingress-controller flag.
b834677
to
6193662
Compare
Comments are addressed. PTAL! |
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sawsa307, swetharepakula 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 |
/assign @swetharepakula