Skip to content

Commit

Permalink
fix(clustering): check for role->data_plane (#11814)
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Schmid <[email protected]>
  • Loading branch information
jschmid1 authored Oct 23, 2023
1 parent a3c249d commit 920ba98
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kong/clustering/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,13 @@ function _M.connect_dp(dp_id, dp_hostname, dp_ip, dp_version)
return wb, log_suffix
end


function _M.is_dp_worker_process()
if kong.configuration.dedicated_config_processing == true then
if kong.configuration.role == "data_plane"
and kong.configuration.dedicated_config_processing == true then
return process_type() == "privileged agent"
end

return worker_id() == 0
end


return _M

1 comment on commit 920ba98

@khcp-gha-bot
Copy link

Choose a reason for hiding this comment

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

Bazel Build

Docker image available kong/kong:920ba98af1b30ec8bde0c62732bd6581c2f186a0
Artifacts available https://github.com/Kong/kong/actions/runs/6613430465

Please sign in to comment.