You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add new cilium/versioned.h generic container for transactional selector
updates.
Add a new NetworkPolicyResourceDiscoveryService that implements delta
(and SotW) updates for policies and selectors, and where policies refer
to selectors by their resource name.
NPRDS adds a top-level oneof wrapper that wraps either a Selector or a
NetworkPolicy. NetworkPolicy definition is shared with NPDS, but
PortNetworkPolicyRule adds a new selectors field that is only used with
NPRDS.
Add 'policy_type' enum to BpfMetadata config to control whether NPDS
(default) or NPRDS is used.
Store the latest desired ConfigSource in the policy map and use it for:
- initial policy map subscription
- re-subscription when connection under current subscription is terminated
- a healthy network policy stream is not disrupted, unless the desired
config is for delta xDS and the current one is not
This means that we switch to NPRDS (Delta) mode eagerly when we have
evidence that the agent is capable, but we switch to NPDS (SotW) mode
only when xDS stream transport had failed to connect or closes.
This should work for Cilium Agent upgrades and downgrades, as the agent
expresses the desired mode, and listens for both.
Clear the resource map on a first update on a new stream. This fixes NACK
cases where further updates on the stream would have IP collisions with
resources that were kept from the previous stream.
Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
0 commit comments