Comments (9)
This probably belongs in the https://github.com/argoproj/argo-helm repo cc @jmeridth
from argo-cd.
Deep links are one option, but I think you could accomplish the same by templating in an external-link
annotation: https://argo-cd.readthedocs.io/en/stable/user-guide/external-url/
from argo-cd.
@jmeridth I had my tabs confused and this is actually for another issue. Sorry about the noise! Will tag you there
from argo-cd.
@christianh814 is this existing functionality and we'd need to expose in argo-cd helm chart's values.yaml? Asking our argo-cd helm chart folks while asking here.
from argo-cd.
@neevnuv I think this can be configured already with https://argo-cd.readthedocs.io/en/latest/operator-manual/deep_links/. You should have access to the metadata.ownerReferences
field. Can you try building one and if it is successful, we could add it in the documentation examples?
from argo-cd.
Hi, thank you for the suggestions, it was the thing we looked for.
In our environment we have applications that deploys an applicationset that deploys other applications. This way we deploy all our applications from a single application.
When trying add a link to an application to the applicationset that created it, we could not link it properly because the name of the ApplicationSet inside the metadata.ownerReferences
is different then the application that deploys it.
we could only get this far:
application.links:
- url: https://<argo-route>/applications/{{ (index .app.metadata.ownerReferences 0).name }}
title: Parent ApplicationSet
if: application.metadata.ownerReferences != nil
from argo-cd.
@neevnuv Can you share the content of the .metadata.ownerReferences
and the expected url ? Go template has a couple of functions available that should allow you to parse the data to get the correct value.
from argo-cd.
@agaudreault my .metadata.ownerReferences
looks like this:
ownerReferences:
- apiVersion: argoproj.io/v1alpha1
blockOwnerDeletion: true
controller: true
kind: ApplicationSet
name: my-application-set
uid: <long-uid>
The issue with this OwnerReferences is that you cannot assume the appliction the appset is deployed from.
I think an option here is to create a link based on an annotation on the Appset/Application.
from argo-cd.
Thank you! This helped
from argo-cd.
Related Issues (20)
- hydrator: add UI/CLI to create/update repo write credentials
- hydrator: handle `sourceHydrator` fields from webhook
- hydrator: add unit tests for new git client functions HOT 1
- hydrator: add metrics server to commit-server
- Helm chart values not rendered as expected
- UI - bad color contrast in filter components HOT 1
- hydrator: report hydration commands from kustomize
- hydrator: remove temp dir path from `helm template` commands
- Not able to add helm enable OCI Private repo through Argocd GUI as well as through command line HOT 3
- Follow logs not working on UI for applications or pods (multiple ArgoCD versions) HOT 1
- Navigation error with location.href ends with `/` HOT 3
- UI - Dark theme background on Application Details panel page HOT 3
- seems no diff restfulapi?
- Argo UI for Rollout has no Promote button and action HOT 2
- Can use list values inside generator HOT 6
- UI Application Details Tree not showing the complete name of applications/resources HOT 6
- grpc: error while marshaling: proto: required field \"resourceName\" not set HOT 3
- argocd app sync --local has a 2mb HOT 1
- Argocd out of sync at part of spec.kustomize HOT 1
- [controller-runtime] log.SetLogger(...) was never called; logs will not be displayed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argo-cd.