feat: show Flux inventory resources with navigation - #613
Merged
Merged
Conversation
Read the owner inventory in the Flux view and provide resource targets by API group and namespace. Prevent local navigation for remote cluster inventories and report entries that cannot be resolved. Closes #612
Greptile SummaryThis PR adds a Managed resources section to the Flux GitOps view for Kustomization and HelmRelease inventories.
Confidence Score: 5/5The PR appears safe to merge; no actionable correctness, security, or repository-rule failures remain. Group-qualified discovery, explicit scope checks, remote-cluster gating, bounded output, and focused tests support the new inventory-navigation behavior without exposing an established failure. Important Files Changed
Sequence DiagramsequenceDiagram
actor User
participant App
participant API as Kubernetes API
participant Discovery as Cluster discovery
participant View as GitOps view
User->>App: Open or refresh GitOps view
App->>API: Read selected resource
App->>API: Resolve and read Flux owner
App->>Discovery: Build kind/group navigation map
App->>App: Parse owner status.inventory.entries
App->>View: Display up to 500 managed resources
User->>View: Press Enter on inventory entry
alt Local owner and valid discovered scope
View->>App: Navigate using qualified plural, namespace, and name
else Remote owner or invalid/unavailable kind
View->>User: Show warning without navigation target
end
Reviews (1): Last reviewed commit: "feat: show Flux inventory resources with..." | Re-trigger Greptile |
This was referenced Sep 16, 2026
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.
The Flux view shows the reconciliation chain but does not list the resources in the owner inventory. This change adds a Managed resources section for Kustomization and HelmRelease objects. Press Enter on an entry to open its resource view.
The list uses
.status.inventory.entrieswithout reading each managed resource. Navigation resolves API group, kind, and namespace through cluster discovery. Entries for unknown kinds or invalid scopes show warnings. Inventories withspec.kubeConfigremain visible but have no local navigation targets.The list shows up to 500 entries and reports the omitted count. Live status and child expansion are outside this change.
Validation: Rust formatting, Clippy with warnings denied, and the full test suite. Three new tests cover navigation for both Flux kinds, API group collisions, namespace scope, remote cluster settings, invalid or absent entries, refresh, and large lists. No live cluster test was run.
Closes #612
Agreed discussion: #561