Git Product home page Git Product logo

Comments (9)

christianh814 avatar christianh814 commented on July 24, 2024 2

This probably belongs in the https://github.com/argoproj/argo-helm repo cc @jmeridth

from argo-cd.

crenshaw-dev avatar crenshaw-dev commented on July 24, 2024 2

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.

christianh814 avatar christianh814 commented on July 24, 2024 1

@jmeridth I had my tabs confused and this is actually for another issue. Sorry about the noise! Will tag you there

from argo-cd.

jmeridth avatar jmeridth commented on July 24, 2024

@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.

agaudreault avatar agaudreault commented on July 24, 2024

@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.

neevnuv avatar neevnuv commented on July 24, 2024

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.

agaudreault avatar agaudreault commented on July 24, 2024

@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.

neevnuv avatar neevnuv commented on July 24, 2024

@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.

neevnuv avatar neevnuv commented on July 24, 2024

Thank you! This helped

from argo-cd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.