ArgoCD app-selector is not working
See original GitHub issueHi! 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:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Hi @martina-if ! Sure, I’ll be trying to fix it and be back here with a pull request. Thanks!
@GustavoAdrianGimenez I will close the issue but if you still have issues, please feel free to re-open it 😃