argocd: Add Open in Argo CD Application action - #1185
Open
Joshna907 wants to merge 3 commits into
Open
Conversation
Signed-off-by: Joshna907 <joshnawaikar@gmail.com>
Signed-off-by: Joshna907 <joshnawaikar@gmail.com>
Signed-off-by: Joshna907 <joshnawaikar@gmail.com>
Joshna907
requested review from
ashu8912,
illume,
joaquimrocha,
skoeva,
sniok,
vyncent-t and
yolossn
as code owners
August 15, 2026 04:14
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a safe external link from Application details to the corresponding Argo CD UI page.
Changes:
- Resolves and validates the configured Argo CD URL.
- Adds the detail-header action with comprehensive tests.
- Documents optional RBAC and local testing configuration.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
argocd/test-files/deploy/argocd-cm.yaml |
Adds mock UI configuration. |
argocd/src/resources/application.ts |
Exposes the controller namespace. |
argocd/src/resources/application.test.ts |
Tests the new accessor. |
argocd/src/components/applications/openInArgoCD.tsx |
Implements URL validation and external action. |
argocd/src/components/applications/openInArgoCD.test.tsx |
Tests URL safety and action behavior. |
argocd/src/components/applications/Detail.tsx |
Adds the action to Application details. |
argocd/src/components/applications/Detail.test.tsx |
Verifies header action integration. |
argocd/README.md |
Documents behavior, permissions, and testing. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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 a safe Open in Argo CD action to the existing Argo CD Application detail header. The Argo icon opens the exact Application in the configured native Argo CD UI in a new browser tab.
Why
Headlamp provides Kubernetes-native visibility and operations. Argo CD's own UI remains the right place for advanced diffs, diagnostics, and resource actions. This gives operators a safe direct path from an Application in Headlamp to that same Application in Argo CD.
Changes
status.controllerNamespacemetadata and an Application getter.argocd-cmConfigMap using Headlamp's public ConfigMap API.status.controllerNamespace, falling back to the Application namespace.argocd-cm.data.urlis a valid absolute HTTP or HTTPS URL./applications/<namespace>/<name>URLs, preserving configured installation paths and encoding names.noopener,noreferrer.Validation
Manual test
guestbookApplication in the native Argo CD UI.Permissions
The optional action requires only:
When the ConfigMap is unavailable, forbidden, missing a URL, or contains an invalid URL, the action is simply hidden.