-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
-
False
-
-
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
- create a app through argocd
- In argocd set
- app name : nginx
- Project Name : default
- sync poliy : automatic
- source > repository URL : https://charts.bitnami.com/bitnami select HELM from dropdown
- select chart nginx and version 12.0.2
- cluster URL https://kubernetes.default.svc
- and set the namespace openshift-gitops
- click on create app.
- open the app in argocd and edit nginx and add label : app.kubernetes.io/name=nginx
- 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: "----"
- 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
- 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
- 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
- Open the argocd component and click on CD Tab.
- Commit section Keeps Loading.
Actual results:
- Commit Keeps Loading in CD Tab
- Under Overview Tab in Deployment summary Revision version link should point to valid URL.
Expected results:
- under CD Tab the commit section's loading bar should resolve.
- 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):