Skip to content

Commit

Permalink
fix(clustering/rpc): invoke notify_new_version on events `clusterin…
Browse files Browse the repository at this point in the history
…g, push_config` (#14071)

KAG-6100
  • Loading branch information
chronolaw authored Jan 3, 2025
1 parent e0d6df7 commit 33523c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kong/clustering/services/sync/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ function _M:init_worker()
if self.is_cp then
events.init()

-- When "clustering", "push_config" worker event is received by a worker,
-- it will notify the connected data planes
events.clustering_push_config(function(_)
self.hooks:notify_all_nodes()
end)

self.strategy:init_worker()
return
end
Expand Down

1 comment on commit 33523c9

@github-actions
Copy link
Contributor

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:33523c94f132ffdd621c372615712d8f525bec92
Artifacts available https://github.com/Kong/kong/actions/runs/12591316687

Please sign in to comment.