-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
external-workloads: do not automatically infer ClusterID/Name #27886
Conversation
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.
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?
45695eb
to
32514e8
Compare
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. |
/test |
32514e8
to
c7e3f02
Compare
c7e3f02
to
69718e3
Compare
/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.
@giorio94 Thanks for your patience. This is well-written and needs only some small tweaks for approval.
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>
69718e3
to
ccc895f
Compare
Thanks @zacharysarah for the feedback, I've applied your suggestion. |
/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.
LGTM
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