question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ArgoCD app-selector is not working

See original GitHub issue

Hi! I configure my component yaml to use argocd/app-selector: app=${app_name} annotation but the plugin returns 404.

If I set the argocd/app-name: testapp annotation it works perfectly, but when I set argocd/app-selector: "app=testapp" it fails. The requests that the frontend is doing to the proxy is a GET to https://myargo.com/api/argocd/argocd/api/applications?selector=app%3Dtestapp.

Expected Behavior

Shows the list of apps that has the label app=testapp (the same list that I can see if I filter the apps in my ArgoCD by the same label)

Current Behavior

It shows the error: Error occurred while fetching data. Error: failed to fetch data, status 404: Not Found

Steps to Reproduce

  • Set the label app=testapp to your argocd application manifest
  • Add the argocd/app-selector: "app=testapp" annotation to your component’s config

Possible Solution

I think that there is a difference between the proxy endpoint that Backstage is using when you set the argocd/app-name annotation and the endpoint that is using when you set the app-selector (api/argocd/argocd/api/applications?selector=app%3Dtestapp)

Context

We cannot see the apps that we want to show in our component’s page

Your Environment

  • @backstage/catalog-react version: 0.6.4
  • @backstage/integrations version: 0.6.10

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
GustavoAdrianGimenezcommented, Jan 12, 2022

Hi @martina-if ! Sure, I’ll be trying to fix it and be back here with a pull request. Thanks!

0reactions
Irma12commented, Feb 15, 2022

@GustavoAdrianGimenez I will close the issue but if you still have issues, please feel free to re-open it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

argocd app wait --selector selects apps that are being deleted ...
Describe the bug When using a label selector with argocd app wait, it seem to select apps that are also in the process...
Read more >
Troubleshooting Tools - Argo CD - Declarative GitOps CD for ...
The document describes how to use argocd admin subcommands to simplify Argo CD settings customizations and troubleshot connectivity issues.
Read more >
@roadiehq/backstage-plugin-argo-cd - npm
Start using @roadiehq/backstage-plugin-argo-cd in your project by running `npm i ... There are no other projects in the npm registry using ...
Read more >
ArgoCD app-selector is not working - Issues Antenna
Hi! I configure my component yaml to use argocd/app-selector: app=${app_name} annotation but the plugin returns 404.If I...
Read more >
Application not showing in ArgoCD when applying yaml
the problem is you have to use the below code in your manifest file in metadata: just please change the namespace with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found