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

fix(core): node_id in configuration is deprecated in this PR #13687

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

liverpool8056
Copy link
Contributor

Summary

node_id in configuration is deprecated in this PR, which means it is not recommended to be specified manually.
A warning message is printed in error log if the node_id is recognized in the configuration.

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

FTI-6221

@liverpool8056 liverpool8056 added this to the 3.9.0 milestone Sep 18, 2024
@github-actions github-actions bot added core/pdk cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels Sep 18, 2024
@liverpool8056 liverpool8056 added the pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release) label Sep 18, 2024
@team-gateway-bot team-gateway-bot added the author/community PRs from the open-source community (not Kong Inc) label Sep 18, 2024
means it is not recommended to be specified manually.
A warning message is printed in the error log if the `node_id` is recognized in the
configuration.

FTI-6221
@@ -272,6 +272,9 @@ local function new(self)
-- 1. user provided node id
local configuration_node_id = self and self.configuration and self.configuration.node_id
if configuration_node_id then
ngx.log(ngx.WARN, "The `node_id`, which has been deprecated since 3.9, is not recommended to be specified manually!!!\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

how about:
manually specifying a node_id is deprecated as of 3.9, it is not recommended to be specified manually. please make sure it is unique across the cluster. Please note that it will be removed in 4.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author/community PRs from the open-source community (not Kong Inc) cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee core/pdk pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release) size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants