forked from argoproj/argo-cd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Graceful shutdown for API Server (argoproj#18642) (argoproj#21224
) * fix: Graceful shutdown for the API server (argoproj#18642) (argoproj#20981) * fix: Graceful shutdown for the API server (argoproj#18642) Closes argoproj#18642 Implements a graceful shutdown the the API server. Without this, ArgoCD API server will eventually return 502 during rolling update. However, healthcheck would return 503 if the server is terminating. Signed-off-by: Andrii Korotkov <[email protected]> Co-authored-by: Leonardo Luz Almeida <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]> * Init server only once, but keep re-initializing listeners Signed-off-by: Andrii Korotkov <[email protected]> * Check error for SetParamInSettingConfigMap as needed after fresh master Signed-off-by: Andrii Korotkov <[email protected]> * Prevent a data race Signed-off-by: Andrii Korotkov <[email protected]> * Remove unused variable, don't pass lock when not necessary Signed-off-by: Andrii Korotkov <[email protected]> * Try overriding URL instead of additional URLs Signed-off-by: Andrii Korotkov <[email protected]> * Use a more specific url Signed-off-by: Andrii Korotkov <[email protected]> --------- Signed-off-by: Andrii Korotkov <[email protected]> Co-authored-by: Leonardo Luz Almeida <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]> * Use a custom signal for graceful restart Signed-off-by: Andrii Korotkov <[email protected]> * Re-run tests Signed-off-by: Andrii Korotkov <[email protected]> --------- Signed-off-by: Andrii Korotkov <[email protected]> Co-authored-by: Leonardo Luz Almeida <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]>
- Loading branch information
1 parent
46bfc10
commit 45e4886
Showing
9 changed files
with
306 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.