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
clustermesh: remote services handling misc improvements #24515
Conversation
/test |
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.
Nits. Quick question: What is the service mutator for?
13618c7
to
38bb008
Compare
38bb008
to
48f0011
Compare
I've added the blocked label since it requires to be rebased on top of #24619 once that one is merged (one integration test would fail otherwise). |
Previously, we filtered events received from remote services observers based on the IncludeExternal and Shared flags. This commit changes the logic to consider only the Shared flag, which is more idiomatic (since IncludeExternal takes only effect in the local cluster). No behavioral change is introduced though, since a non-global service cannot be shared. Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
Currently, we identify services using name + namespace. This commit extends the ID to possibly include also the cluster name, and adapts the related external service merging logic to account for its presence. The ServiceID with empty cluster name is reserved for backward compatibility. Co-authored-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com> Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
Expose the cluster name as part of the service metadata, in case it does not match the one of the local cluster. Then, the CLI can use that to output a more informative status. Note: the CLI currently relies on the cluster name not being set if the service is local, since it does not know the local cluster name). Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
Extend the service cache to specify additional mutators to be executed when a service is received from k8s and converted to the internal representation. Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
48f0011
to
b353041
Compare
/test Job 'Cilium-PR-K8s-1.24-kernel-5.4' 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 |
The integration tests failed due to a new flake: #24652 |
/test-1.24-5.4 Hit known flake #16122 |
Please, refer to the individual commit messages for the details about the respective changes.