Skip to content
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

Add support for container lifecycle hooks in VTGate #406

Merged

Conversation

stankevich
Copy link
Contributor

@stankevich stankevich commented Apr 6, 2023

Can be used to add postStart and preStop lifecycle hooks to the VTGate container. If a longer preStop hook execution is needed, this PR also adds support for customizing terminationGracePeriodSeconds of the VTGate pods.

Example use cases: delaying the shutdown of VTGate pods to let the application complete any in-flight queries, or notifying the application to gracefully disconnect from the VTGate pod that is being shut down.

Similar to #192.

Can be used to add postStart and preStop lifecycle hooks to the VTGate
container. If a longer preStop hook execution is needed, this PR also
adds support for customizing terminationGracePeriodSeconds of the VTGate
pods.

Signed-off-by: Sergey Stankevich <[email protected]>
Copy link
Member

@frouioui frouioui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @stankevich, thanks for this contribution. I am not seeing any objection to it. LGTM

I'll let @GuptaManan100 also double stamp this.

Copy link
Collaborator

@GuptaManan100 GuptaManan100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants