-
Notifications
You must be signed in to change notification settings - Fork 350
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
feat: Add parameter --min-sigterm-delay #2266
Conversation
…inimum number off seconds before shutting down the proxy.
case errors.Is(err, errQuitQuitQuit): | ||
cmd.logger.Infof("/quitquitquit received request. Shutting down...") | ||
time.Sleep(cmd.conf.WaitBeforeClose) |
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.
Shall we just add one of these right above the return statement below?
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, because we don't want to delay in the case of the default error. We only want to delay if the exit process was somehow initiated by the user.
…tion. The auth proxy added --min-sigterm-delay in GoogleCloudPlatform/cloud-sql-proxy#2266, This adds a matching configuration property to the operator's CRD.
…tion. The auth proxy added --min-sigterm-delay in GoogleCloudPlatform/cloud-sql-proxy#2266, This adds a matching configuration property to the operator's CRD.
…639) The auth proxy added the flag --min-sigterm-delay in GoogleCloudPlatform/cloud-sql-proxy#2266. This adds a matching configuration property to the operator's CRD. Fixes #627
This makes the proxy continue to accept new connections for a period of time
after receiving the TERM signal.
Fixes #1640