Skip to content

Cleanup refactor#1902

Open
jrajahalme wants to merge 2 commits into
mainfrom
cleanup-refactor
Open

Cleanup refactor#1902
jrajahalme wants to merge 2 commits into
mainfrom
cleanup-refactor

Conversation

@jrajahalme
Copy link
Copy Markdown
Member

  • Refactor for future changes
  • rename npds_config as config_source

@jrajahalme jrajahalme added the clean-up Changes not affecting release behavior (style, removal of deprecated or dead code) label May 12, 2026
@jrajahalme jrajahalme requested a review from a team as a code owner May 12, 2026 12:38
@jrajahalme jrajahalme requested review from nezdolik and sayboras May 12, 2026 12:38
Refactor policy code in preparation for delta NPDS changes in later
commits:

- Remove unnecessary PortPolicy.map_ member.
- Move NetworkPolicyMapImpl to cilium/network_policy.cc to hide
  implementation detail.
- Add helpers for policy updates to be shared with the delta code later.
- Pass Context to secret watcher functions instead of the full
  NetworkPolicyMap.
- Simplify gRPC subscribe() parameters.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
The new config source in BpfMetadata config is also used the Secrets
referenced in the policy, as well as NPHDS, so it's more honest to call
it just "config_source".

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme jrajahalme mentioned this pull request May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clean-up Changes not affecting release behavior (style, removal of deprecated or dead code) needs-backport/1.36

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant