argocd: Add managed-resource API availability insights - #1184
Open
Joshna907 wants to merge 3 commits into
Open
Conversation
Joshna907
requested review from
ashu8912,
illume,
joaquimrocha,
skoeva,
sniok,
vyncent-t and
yolossn
as code owners
August 15, 2026 01:31
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Kubernetes API availability insights to Argo CD managed resources while avoiding discovery and local links for remote destinations.
Changes:
- Adds cached, concurrent API discovery and availability evaluation.
- Adds availability columns, statuses, warnings, and remote safeguards.
- Adds tests and documentation for discovery behavior and scope.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
argocd/src/api/apiDiscovery.ts |
Implements Kubernetes API discovery and caching. |
argocd/src/api/apiDiscovery.test.ts |
Tests discovery, caching, and concurrency. |
argocd/src/components/applications/apiAvailability.ts |
Evaluates and loads managed-resource API availability. |
argocd/src/components/applications/apiAvailability.test.ts |
Tests availability states and asynchronous updates. |
argocd/src/components/applications/Detail.tsx |
Displays API availability in Managed Resources. |
argocd/README.md |
Documents the feature and its limitations. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Signed-off-by: Joshna907 <joshnawaikar@gmail.com>
Signed-off-by: Joshna907 <joshnawaikar@gmail.com>
Signed-off-by: Joshna907 <joshnawaikar@gmail.com>
Joshna907
force-pushed
the
codex/argocd-api-availability
branch
from
August 15, 2026 11:18
d7caf2b to
bba49eb
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.
Suppressed comments (1)
argocd/src/components/applications/Detail.tsx:380
- The tooltip contains the only served-version/error detail, but its
<span>trigger is not keyboard-focusable, so keyboard-only users cannot open it. Make the trigger focusable so MUI can show the tooltip on focus.
<span>
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
This PR adds dynamic Kubernetes API-availability insights to the Argo CD Application detail page. For each resource reported by
Application.status.resources, Headlamp compares the reported API group, version, and kind with the APIs served by the selected local Kubernetes cluster.Why
Argo CD can report an Application as Synced and Healthy even when its manifest uses an API version that is no longer served by the cluster. Showing the reported Resource API next to the selected cluster's API availability helps operators spot that kind of mismatch earlier.
Changes
Resource APIandCluster APIcolumns to Managed Resources.Validation
Steps to test
Resource APIshows the API reported by Argo CD andCluster APIbecomes Available when the selected cluster serves it.Limitation
A matching API only means the Kubernetes API server serves that resource API. It does not prove a controller implements every field or feature, and it does not prove traffic is working.