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

[backport -> release/3.7.x] fix(cmd): do not override kong.conf if --db-timeout is not passed #12981

Merged
merged 1 commit into from
May 6, 2024

Conversation

team-gateway-bot
Copy link
Collaborator

Automated backport to release/3.7.x, triggered by a label in #12761.

Original description

Summary

Prior to this fix, if the gateway was started using the kong cli, the final pg_timeout would be overridden to 60s instead of the value specified in kong.conf, even if --db-timeout was not explicitly passed in. This was fixed by making cli args --db-timeout optional, so that only explicitly passed in arguments would override the pg_timeout otherwise the value specified in kong.conf would continue to be used.

Checklist

Issue reference

Fix #10307 (reply in thread)
KAG-4416

…#12761)

explicitly

Prior to this fix, if the gateway was started using the kong cli, the
final `pg_timeout` would be overridden to `60s` instead of the value
specified in `kong.conf`, even if `--db-timeout` was not explicitly
passed in. This was fixed by making cli args `--db-timeout` optional, so
that only explicitly passed in arguments would override the `pg_timeout`
otherwise the value specified in `kong.conf` would continue to be used.

Co-authored-by: Hans Hübner <hans.huebner@gmail.com>
(cherry picked from commit fd8707e)
@hanshuebner hanshuebner merged commit 30c0c82 into release/3.7.x May 6, 2024
42 checks passed
@hanshuebner hanshuebner deleted the backport-12761-to-release/3.7.x branch May 6, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee core/cli size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants