feat: multi-field search index, ResourceQuota/LimitRange support, and RBAC creation forms - #73
Merged
Merged
Conversation
… tests for labelsToStrings and searchUtils
- Implemented YAML generation for Role, ClusterRole, RoleBinding, and ClusterRoleBinding. - Added ResourceQuota and LimitRange detail views with YAML fetching capabilities. - Updated DetailPanel, ResourceList, and Sidebar to include ResourceQuota and LimitRange sections. - Enhanced resource configuration to support ResourceQuota and LimitRange types. - Updated tests to reflect the addition of ResourceQuota and LimitRange sections.
…tion or class' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Multi-field search index —
buildSearchIndex/filterByQueryinsearchUtils.tsbuild a uid→string map (null-delimited, lowercased) once when resources arrive; filtering runs per-keystroke against the index with no re-allocation on empty query.searchFieldsadded to everySectionConfigentry covering names, namespaces, labels (k=v pairs), images, IPs, schedule, phase, owner refs, and type-specific fields.ResourceListrebuilds the index on resource changes and filters the display list onsearchQuerychanges.ResourceQuota and LimitRange — Go informers, RBAC probe, sidecar handlers, IPC channel, preload, store slice,
SECTION_CONFIGentries with fullsearchFields, sidebar nav entries,DetailPanelrouting, and new detail views (ResourceQuotaDetailusage table + scopes,LimitRangeDetaillimit rules list).RBAC creation forms —
RoleForm,ClusterRoleForm,RoleBindingForm,ClusterRoleBindingFormadded toCreateResourceModal.SectionRouter+ Newbutton extended to all four RBAC sections.Go handler registry —
AllResourceDefstable inregistry.goreplaces 28 individualvar Handle* = MakeHandler(...)declarations;main.goloops over the slice to register routes.TestAllResourceDefs_Countguards the count.Type of change
Checklist
npm run buildpasses cleanlynpm run testpassescd go-core && go test ./...passes