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

Sort kubernetes cluster #10702

Merged
merged 6 commits into from
Mar 7, 2022
Merged

Sort kubernetes cluster #10702

merged 6 commits into from
Mar 7, 2022

Conversation

kimlisa
Copy link
Contributor

@kimlisa kimlisa commented Mar 1, 2022

part of RFD 55

Description

Sorting for kube resource is weird in that it has a 1-N relationship (service to many clusters), in order to apply "sort" filter correctly, we need to extract all kube clusters from services into its own list and deduplicated.

So if a user wants to apply sort to kube clusters, they need to request ListResources with type KindKubernetesCluster that returns a list of this type. Type KindKubernetesCluster can only be supported through fake pagination.

I contained this feature in the auth layer. It felt weird to include in the presence layer since resources returned there are keep alive resources (wasn't sure if this was a right thing to do though)

@github-actions github-actions bot requested review from alex-kovoy and gzdunek March 1, 2022 17:57
@kimlisa kimlisa requested review from espadolini and rosstimothy and removed request for alex-kovoy and gzdunek March 1, 2022 17:59
@kimlisa kimlisa force-pushed the lisa/sort-kube branch 2 times, most recently from 90a54c8 to f0ac6eb Compare March 1, 2022 22:56
@kimlisa kimlisa merged commit b868ccc into master Mar 7, 2022
@kimlisa kimlisa deleted the lisa/sort-kube branch March 7, 2022 17:54
kimlisa added a commit that referenced this pull request Mar 7, 2022
kimlisa added a commit that referenced this pull request Mar 7, 2022
@webvictim webvictim mentioned this pull request Apr 19, 2022
@webvictim webvictim mentioned this pull request Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants