New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend tunnel map key with ClusterID #22687
Extend tunnel map key with ClusterID #22687
Conversation
44dc08d
to
341dfe5
Compare
341dfe5
to
066171e
Compare
Rebased on the latest master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
/test |
066171e
to
164b9d7
Compare
Fixed the conflicts with the latest master. |
/test |
In Cluster Mesh with overlapping PodCIDR, we have to identify remote endpoint with IP + ClusterID. Thus, we should also lookup tunnel map using IP + ClusterID. Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
Implement required helpers to implement tunnel map with cluster-aware addressing. Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
Modify tunnel map APIs (Set/Get/Delete/SilentDelete) to be aware of the cluster-aware addressing. Currently, there's no user interface to set non-zero ClusterID. Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
Tunnel map APIs (Set/Get/Delete/SilentDelete) are implemented as a method of Map (tunnel map) struct. However, they all uses global TunnelMap valiable internally. Fix for readability and ease of tests. Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
164b9d7
to
c36dad8
Compare
Rebased on the latest master. This removes the duplicated code with #22200. Also I renamed the |
/test Job 'Cilium-PR-K8s-1.16-kernel-4.9' failed: Click to show.Test Name
Failure Output
If it is a flake and a GitHub issue doesn't already exist to track it, comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
/test-1.16-4.9 |
Multicluster / Cluster mesh hit this #23045. |
/ci-multicluster |
@YutaroHayakawa Please reopen the flake issue in such cases. |
This is a part of the Cluster Mesh with overlapping PodCIDR support. When the remote cluster has an overlapping PodCIDR, we must identify the remote endpoint using IP + ClusterID. This PR makes the required changes for the tunnel map to realize that. Note that this PR only adds infrastructure, and currently, we don't "use" that. Please see the commits for more details.