Skip to content
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

external-workloads: do not automatically infer ClusterID/Name #27886

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

giorio94
Copy link
Member

@giorio94 giorio94 commented Sep 1, 2023

Currently, when the Cilium agent running on a VM joins an existing cluster, it automatically infers the corresponding ClusterID and ClusterName. Yet, this introduces a dependency order, because all consumers of that field need to be initialized after the connection to the remote cluster, which is especially problematic as more components get converted to cells. Additionally, this may also lead to possible user confusion, as the corresponding parameter is reported as not initialized in the logs.

Hence, let's require these parameters to be explicitly set, reporting a failure in case they don't match those automatically discovered.

Depends on cilium/cilium-cli#1948

Don't automatically infer ClusterID and ClusterName for external workloads.

@giorio94 giorio94 added release-note/minor This PR changes functionality that users may find relevant to operating Cilium. area/clustermesh Relates to multi-cluster routing functionality in Cilium. labels Sep 1, 2023
@giorio94 giorio94 requested a review from a team as a code owner September 1, 2023 14:26
@giorio94 giorio94 requested a review from gandro September 1, 2023 14:26
@giorio94 giorio94 marked this pull request as draft September 1, 2023 14:26
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Thanks! Does this need to be documented in the upgrade notes as a breaking change or is this not a configuration we expect users to have?

@giorio94 giorio94 force-pushed the mio/external-worklods-cluster-id-name branch from 45695eb to 32514e8 Compare September 18, 2023 12:44
@giorio94
Copy link
Member Author

Does this need to be documented in the upgrade notes as a breaking change or is this not a configuration we expect users to have?

External workloads are marked as a beta feature, but I agree that it makes sense to call this out as a breaking change. I've updated the upgrade notes to document it.

@giorio94
Copy link
Member Author

/test

@giorio94 giorio94 force-pushed the mio/external-worklods-cluster-id-name branch from 32514e8 to c7e3f02 Compare September 18, 2023 14:53
@giorio94 giorio94 force-pushed the mio/external-worklods-cluster-id-name branch from c7e3f02 to 69718e3 Compare September 19, 2023 07:40
@giorio94
Copy link
Member Author

/test

@giorio94 giorio94 marked this pull request as ready for review September 19, 2023 08:43
@giorio94 giorio94 requested a review from a team as a code owner September 19, 2023 08:43
Copy link
Contributor

@zacharysarah zacharysarah left a comment

Choose a reason for hiding this comment

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

@giorio94 Thanks for your patience. This is well-written and needs only some small tweaks for approval.

Documentation/operations/upgrade.rst Outdated Show resolved Hide resolved
Currently, when the Cilium agent running on a VM joins an existing
cluster, it automatically infers the corresponding ClusterID and
ClusterName. Yet, this introduces a dependency order, because all
consumers of that field need to be initialized after the connection
to the remote cluster, which is especially problematic as more
components get converted to cells. Additionally, this may also
lead to possible user confusion, as the corresponding parameter
is reported as not initialized in the logs.

Hence, let's require these parameters to be explicitly set, reporting
a failure in case they don't match those automatically discovered.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94 giorio94 force-pushed the mio/external-worklods-cluster-id-name branch from 69718e3 to ccc895f Compare September 25, 2023 12:30
@giorio94
Copy link
Member Author

@giorio94 Thanks for your patience. This is well-written and needs only some small tweaks for approval.

Thanks @zacharysarah for the feedback, I've applied your suggestion.

@giorio94
Copy link
Member Author

/test

Copy link
Contributor

@zacharysarah zacharysarah left a comment

Choose a reason for hiding this comment

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

LGTM

@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 Sep 25, 2023
@lmb lmb merged commit e30e46a into cilium:main Sep 25, 2023
61 checks passed
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. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/minor This PR changes functionality that users may find relevant to operating Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants