Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-2746

Commit section keeps loading in Dynamic Plugin @janus-idp/backstage-plugin-argocd when app is deployed via Helm through ArgoCD

Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.2
    • None
    • ArgoCD Plugin
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      Git info for helm chart based workflows no longer shown in ArgoCD plugin UI::

      Previously, git information was shown in the ArgoCD plugin UI, even for non-git workflows. With this release, git information is only shown when relevant.
      Show
      Git info for helm chart based workflows no longer shown in ArgoCD plugin UI:: Previously, git information was shown in the ArgoCD plugin UI, even for non-git workflows. With this release, git information is only shown when relevant.
    • Bug Fix
    • Proposed

      Description of problem:

      Commit section keeps loading in Dynamic Plugin @janus-idp/backstage-plugin-argocd when app is deployed via Helm through ArgoCD

      Prerequisites (if any, like setup, operators/versions):

      running argocd instance.

      Steps to Reproduce

      1. create a app through argocd 
      2. In argocd set
        1. app name : nginx
        2. Project Name : default
        3. sync poliy : automatic
        4. source > repository URL : https://charts.bitnami.com/bitnami select HELM from dropdown
        5. select chart nginx and version 12.0.2
        6. cluster URL https://kubernetes.default.svc
        7. and set the namespace openshift-gitops
        8. click on create app.
        9. open the app in argocd and edit nginx and add label : app.kubernetes.io/name=nginx
      3. Enable the roadiehq-backstage-plugin-argo-cd-backend-dynamic plugin: 
      - package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-argo-cd-backend-dynamic
            disabled: false
            pluginConfig:
              argocd:
                username: "admin"
                password: "...."
                appLocatorMethods:
                  - type: 'config'
                    instances:
                      - name: argoInstance1
                        url: "https://openshift-gitops-server-openshift-gitops.rhdh-qe-a9805650830b22c3aee243e51d79565d-0000.us-east.containers.appdomain.cloud"
                        token: "----"
           
      1. enable janus-idp-backstage-plugin-argocd plugin: 
      - package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-argocd
            disabled: false
            pluginConfig:
              dynamicPlugins:
                frontend:
                  janus-idp.backstage-plugin-argocd:
                    mountPoints:
                      - mountPoint: entity.page.overview/cards
                        importName: ArgocdDeploymentSummary
                        config:
                          layout:
                            gridColumnEnd:
                              lg: "span 8"
                              xs: "span 12"
                          if:
                            allOf:
                              - isArgocdConfigured
                      - mountPoint: entity.page.cd/cards
                        importName: ArgocdDeploymentLifecycle
                        config:
                          layout:
                            gridColumn: '1 / -1'
                          if:
                            allOf:
                              - isArgocdConfigured 
      1. add proxy in app-config :
      proxy:
        endpoints:
          '/argocd/api':
            # url to the api of your hosted argoCD instance
            target: https://openshift-gitops-server-openshift-gitops.rhdh-qe-a9805650830b22c3aee243e51d79565d-0000.us-east.containers.appdomain.cloud/api/v1
            changeOrigin: true
            # this line is required if your hosted argoCD instance has self-signed certificate
            secure: false
            headers:
              Cookie:
                $env: eyJhbGciOiJIU....... 
      
      argocd:
        baseUrl: https://openshift-gitops-server-openshift-gitops.rhdh-qe-a9805650830b22c3aee243e51d79565d-0000.us-east.containers.appdomain.cloud
        appLocatorMethods:
          - instances:
            - name: argoInstance1
              password:  hZ.....
              url: https://openshift-gitops-server-openshift-gitops.rhdh-qe-a9805650830b22c3aee243e51d79565d-0000.us-east.containers.appdomain.cloud
              username:  admin
            type: config
      1. Now Register Existing component : 
      apiVersion: backstage.io/v1alpha1
      kind: Component
      metadata:
        name: argocd
        annotations:
          argocd/app-selector: 'app.kubernetes.io/name=nginx'
      spec:
        type: website
        lifecycle: development
        owner: janus-authors 
      1. Open the argocd component and click on CD Tab.
      2. Commit section Keeps Loading.

      Actual results:

      1. Commit Keeps Loading in CD Tab 
      2. Under Overview Tab in Deployment summary Revision version link should point to valid URL.

       

      Expected results:

      1. under CD Tab the commit section's loading bar should resolve.
      2. Under Overview Tab in Deployment summary Revision version link opens wrong link : https://charts.bitnami.com/bitnami/commit/12.0.2 

      Reproducibility (Always/Intermittent/Only Once): 

      Always

      Build Details: 

      quay.io/rhdh/rhdh-hub-rhel9:1.2-88

      Additional info (Such as Logs, Screenshots, etc):

       

      .   

              karthik.jk Karthik Jeeyar
              skhileri Subhash Khileri
              RHIDP - Dance
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: