-
Notifications
You must be signed in to change notification settings - Fork 373
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
Fix VM Agent RBAC warnings #5391
Conversation
df6e299
to
16aad44
Compare
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.
The change looks good to me.
I am thinking shall we refine agent.go to cleanly split agent logic for container case and VM case, e.g., introducing a new interface for agent, making VM agent and K8s Node agent as different implementations, and leaving the general resources like kubeClient, antreaClient, OVS client in the shared functions, and constructing other informers in the dedicated implementations. Any thoughts @tnqn @antoninbas @jianjuns ?
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
I'm not sure which kind of interface you mean and how the implementations will look like as I don't see many things can be abstracted in the
|
It looks good to to me to use two separate funcs for the different scenarios. |
The commit is not signed |
Recent changes for K8s Node cause VM Agent RBAC warnings regarding service and node. These warnings will flood VM Agent logs. This change fixes the issue by only initializing the related components for K8s Node case. Signed-off-by: Mengdie Song <songm@vmware.com>
16aad44
to
6b81137
Compare
@tnqn I have signed the commit, thanks. |
/test-all |
Recent changes for K8s Node cause VM Agent RBAC warnings regarding service and node. These warnings will flood VM Agent logs.
This change fixes the issue by only initializing the related components for K8s Node case.
Signed-off-by: Mengdie Song songm@vmware.com