-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix(cmd): do not override kong.conf
if --db-timeout
is not passed
#12761
Conversation
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.
I have verified that without this change, setting |
…#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 <[email protected]> (cherry picked from commit fd8707e)
Successfully created backport PR for |
Cherry-pick failed for Please cherry-pick the changes locally. git remote add upstream https://github.com/kong/kong-ee
git fetch upstream master
git worktree add -d .worktree/cherry-pick-12761-to-master-to-upstream upstream/master
cd .worktree/cherry-pick-12761-to-master-to-upstream
git checkout -b cherry-pick-12761-to-master-to-upstream
ancref=$(git merge-base ddda6a1f2abbd1c8030a4325a807a17755a8bd19 5dcde2d48482852f219663018aeaf6b96a06c052)
git cherry-pick -x $ancref..5dcde2d48482852f219663018aeaf6b96a06c052 |
…#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 <[email protected]> (cherry picked from commit fd8707e)
…#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 <[email protected]> (cherry picked from commit fd8707e)
Cherry-pick failed for Please cherry-pick the changes locally. git remote add upstream https://github.com/kong/kong-ee
git fetch upstream master
git worktree add -d .worktree/cherry-pick-12761-to-master-to-upstream upstream/master
cd .worktree/cherry-pick-12761-to-master-to-upstream
git checkout -b cherry-pick-12761-to-master-to-upstream
ancref=$(git merge-base ddda6a1f2abbd1c8030a4325a807a17755a8bd19 5dcde2d48482852f219663018aeaf6b96a06c052)
git cherry-pick -x $ancref..5dcde2d48482852f219663018aeaf6b96a06c052 |
Successfully created backport PR for |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release/3.7.x
git worktree add -d .worktree/backport-12761-to-release/3.7.x origin/release/3.7.x
cd .worktree/backport-12761-to-release/3.7.x
git switch --create backport-12761-to-release/3.7.x
git cherry-pick -x fd8707ee6a505fecfc388997863c573398b2b853 |
…#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 <[email protected]> (cherry picked from commit fd8707e)
…#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 <[email protected]>
Summary
Prior to this fix, if the gateway was started using the kong cli, the final
pg_timeout
would be overridden to60s
instead of the value specified inkong.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 thepg_timeout
otherwise the value specified inkong.conf
would continue to be used.Checklist
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdIssue reference
Fix #10307 (reply in thread)
KAG-4416