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

preStop: Replace sleep with --wait #531

Merged
merged 2 commits into from
Jan 21, 2022

Conversation

dcarley
Copy link
Contributor

@dcarley dcarley commented Jan 20, 2022

What this PR does / why we need it:

The kong quit command has the ability to do the sleep itself which is
cleaner and provides better logging (should we choose to capture it):

Which issue this PR fixes

N/A

Special notes for your reviewer:

We've been testing this because the wait needs to be increased when using NLBs.

I've only quoted the last argument because it has more chance of falling foul of YAML intepretation.

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • PR is based off the current tip of the main branch.
  • Changes are documented under the "Unreleased" header in CHANGELOG.md
  • New or modified sections of values.yaml are documented in the README.md
  • Commits follow the Kong commit message guidelines

@dcarley dcarley requested a review from a team as a code owner January 20, 2022 16:26
shaneutt
shaneutt previously approved these changes Jan 20, 2022
Copy link
Contributor

@rainest rainest left a comment

Choose a reason for hiding this comment

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

Minor change to link the PR, otherwise LGTM.

charts/kong/CHANGELOG.md Show resolved Hide resolved
The `kong quit` command has the ability to do the sleep itself which is
cleaner and provides better logging (should we choose to capture it):

- https://github.com/Kong/kong/blob/2.6.0/kong/cmd/quit.lua#L59-L72
- https://github.com/Kong/kong/blob/2.6.0/kong/cmd/quit.lua#L20-L33
@rainest rainest merged commit 4193288 into Kong:main Jan 21, 2022
ubergesundheit pushed a commit to giantswarm/kong-charts-upstream that referenced this pull request Feb 9, 2022
The `kong quit` command has the ability to do the sleep itself which is
cleaner and provides better logging (should we choose to capture it):

- https://github.com/Kong/kong/blob/2.6.0/kong/cmd/quit.lua#L59-L72
- https://github.com/Kong/kong/blob/2.6.0/kong/cmd/quit.lua#L20-L33

Co-authored-by: Travis Raines <571832+rainest@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants