-
Notifications
You must be signed in to change notification settings - Fork 376
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
[Multicluster] Fix cache options for controller Manager #6150
[Multicluster] Fix cache options for controller Manager #6150
Conversation
/test-multicluster-e2e |
A few issues were introduced by antrea-io#5843 because of changes in the sigs.k8s.io/controller-runtime interface. The biggest issue was that the call to ctrl.NewManager was not using the Options object populated earlier in the setupManagerAndCertController function. Instead it was creating and using a new, incomplete Options object. Fixes antrea-io#6149 Signed-off-by: Antonin Bas <[email protected]>
ff9536d
to
f7e8260
Compare
/test-multicluster-e2e |
podNamespace: {}, | ||
} | ||
} else { | ||
// For a member, restict the cache to the controller's Namespace for the following objects. |
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.
@luolanzone I am not entirely sure how these objects are determined.
However, I removed mcv1alpha1.MemberClusterAnnounce
, which doesn't exist in the member cluster.
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.
Yeah, it should be removed if we separate the filter for the leader and member.
The decoder is no longer injected automatically, it needs to be instantiated by us. Signed-off-by: Antonin Bas <[email protected]>
/test-multicluster-e2e |
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
|
/skip-all |
A few issues were introduced by #5843 because of changes in the sigs.k8s.io/controller-runtime interface.
The biggest issue was that the call to ctrl.NewManager was not using the Options object populated earlier in the setupManagerAndCertController function. Instead it was creating and using a new, incomplete Options object.
Fixes #6149