-
Notifications
You must be signed in to change notification settings - Fork 160
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
frontend: CustomResourceInstancesList: Fix to work with multi cluster #2518
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: René Dudfield <[email protected]>
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.
Also, I don't understand what the issue was from the commit description.
const dataClassCrds = crds.map(crd => { | ||
const crdClass = crd.makeCRClass(); | ||
const data = crdClass.useList({ cluster: crd.cluster }); | ||
return { data, crdClass, crd }; | ||
}); |
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.
Should we keep a useMemo for at least generating the classes here?
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.
I don't think so. I had tried that, but generating the classes doesn't take very much time.
If it's a problem for you, and not a nit... I can have a bit more of a think.
The issue is the view completely failed to render. |
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.
nice
Before there was an error, now they list and there is a cluster column.
(for single cluster mode it's the same as before)