roadie-backstage-plugins icon indicating copy to clipboard operation
roadie-backstage-plugins copied to clipboard

Could not create ArgoCD Resources

Open ale-conekta opened this issue 2 years ago • 1 comments

Hello, When I try to executed the plugin it return and error and does not create the resources. Would be nice if it gives more details when it fails, like:

  • ArgoCD API Error query result.
  • Plugin Error Details

Expected Behavior

ArgoCD Application created.

Current Behavior

1 2022-06-30T01:00:28.314Z Beginning step Create ArgoCD Resources 2 2022-06-30T01:00:31.345Z Error: Could not create ArgoCD application. 3 at ArgoService.createArgoApplication (/app/node_modules/@roadiehq/backstage-plugin-argo-cd-backend/dist/index.cjs.js:209:13) 4 at processTicksAndRejections (node:internal/process/task_queues:96:5) 5 at async ArgoService.createArgoResources (/app/node_modules/@roadiehq/backstage-plugin-argo-cd-backend/dist/index.cjs.js:340:5) 6 at async Object.handler (/app/node_modules/@roadiehq/scaffolder-backend-argocd/dist/index.cjs.js:59:7) 7 at async NunjucksWorkflowRunner.execute (/app/node_modules/@backstage/plugin-scaffolder-backend/dist/index.cjs.js:3390:11) 8 at async TaskWorker.runOneTask (/app/node_modules/@backstage/plugin-scaffolder-backend/dist/index.cjs.js:3470:26) 9 at async /app/node_modules/@backstage/plugin-scaffolder-backend/dist/index.cjs.js:3461:9

Steps to Reproduce

I created this template:


- title: Helm Template
  required:
    - helm_chart_url
    - path_values
    - env
  properties:
    helm_chart_url:
      title: Repository Helm Chart URL
      type: string
      description: Github repository url where live the helm chart template.
    path_values:
      title: Path to Values
      type: string
      description: The path where lives the values.yaml of your application.
    env:
      title: Environment.
      type: string
      description: Environment where to deploy your application.
      enum:
        - dev
        - stg
        - prd

- id: create-argocd-resources
  name: Create ArgoCD Resources
  action: argocd:create-resources
  input:
    appName: ${{ parameters.component_id }}
    argoInstance: ${{ parameters.env }}
    namespace: ${{ parameters.component_id }}
    repoUrl: ${{ parameters.helm_chart_url }}
    labelValue: ${{ parameters.component_id }}
    path: ${{ parameters.path_values }}

  • app-config.yaml:

argocd: username: ${ARGOCD_USERNAME} password: ${ARGOCD_PASSWORD} waitCycles: 25 appLocatorMethods: - type: 'config' instances: - name: dev url: https://myargocd.com.it


image

Possible Solution

Context

Your Environment

  • @roadiehq/scaffolder-backend-argocd
  • @roadiehq/backstage-plugin-argo-cd

ale-conekta avatar Jun 30 '22 01:06 ale-conekta

https://app.shortcut.com/larder/story/9626

roadie-bot avatar Jun 30 '22 01:06 roadie-bot

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 24 '23 10:10 github-actions[bot]