Skip to content

Conversation

giorio94
Copy link
Member

Introduce a new clustermesh source to identify data that is retrieved from and refers to remote clusters. This enables to better identify the source of the given piece of information, rather than marking it as originating from the kvstore. The clustermesh source is additionally characterized by lower priority, to prevent conflicting information retrieved from a remote cluster from taking precedence over local cluster data (regardless of CRD/kvstore mode).

Please review commit by commit, and refer to the individual descriptions for additional details.

Introduce clustermesh source to differentiate data retrieved from remote clusters

giorio94 added 3 commits May 23, 2024 14:53
Introduce a new clustermesh source to identify data that is retrieved
from and refers to remote clusters. This enables to better identify
the source of the given piece of information, rather than marking it
as originating from the kvstore. The clustermesh source is additionally
characterized by lower priority, to prevent conflicting information
retrieved from a remote cluster from taking precedence over local
cluster data (regardless of CRD/kvstore mode).

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
So that we can configure the kvstore source when data is retrieved
from the main kvstore instance, and clustermesh if retrieved from
remote clusters.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
So that we can configure the kvstore source when data is retrieved
from the main kvstore instance, and clustermesh if retrieved from
remote clusters.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94 giorio94 added area/clustermesh Relates to multi-cluster routing functionality in Cilium. release-note/misc This PR makes changes that have no direct user impact. area/kvstore Impacts the KVStore package interactions. labels May 23, 2024
@giorio94
Copy link
Member Author

/test

Copy link
Contributor

@doniacld doniacld left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀 I am just wondering if integration tests will follow this PR?

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 28, 2024
@giorio94
Copy link
Member Author

I am just wondering if integration tests will follow this PR?

Yeah, I know that there's no full integration test at the moment for that. The reason being that the setting is pretty trivial (just configuring a value), but testing it with the current setup is quite complex (I'm working on a few followup changes that would simplify that). Differently, the PR already tests the correct propagation of the source in the ipcache watcher.

@tklauser tklauser added this pull request to the merge queue May 28, 2024
Merged via the queue into cilium:main with commit edf3a77 May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/clustermesh Relates to multi-cluster routing functionality in Cilium. area/kvstore Impacts the KVStore package interactions. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants