-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix: implement graceful shutdown for api server #15938
Conversation
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #15938 +/- ##
==========================================
- Coverage 49.69% 49.64% -0.05%
==========================================
Files 267 267
Lines 46362 46418 +56
==========================================
+ Hits 23039 23045 +6
- Misses 21063 21111 +48
- Partials 2260 2262 +2 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
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.
Having trouble getting code coverage for api-server. I hoped graceful shutdown would help, so was testing this.
* more attempts to gracefully shut down Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * fix import order Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --------- Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
log.Info("API Server successfully shut down.") | ||
break |
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.
I guess this loop can go away completely now.
Argo CD API server will eventually return 502 during rolling update.
This PR is an attempt to implement graceful shutdown for the API server process.
Partially fix #18642
Signed-off-by: Leonardo Luz Almeida leonardo_almeida@intuit.com
Checklist: