-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-source application stuck in "Unknown" status when sourceRepo is not whitelisted #16216
Comments
@sym-stiller can you share a sample application for reproducing the issue? The complete UI/ CLI is still not supported for multi-source applications. But, UI crashing surely needs to be fixed. |
Hi @ishitasequeira ! Sure, this is a simple setup to reproduce this issue:
This setup should work correctly (given that the authentication for the referenced repositories/registries is correctly configured). If you remove one of the |
Hi @sym-stiller I tried recreating your error. I tried to remove this entry Removing it through UI gave me this error : Removing it through CLI gave me this error : The below thing did not happen for me, I was able to select the application multiple times, my UI was stable, did not crash & I didn't have to reload anything. Although the application DID go into an Unknown state due to the InvalidSpecError.
|
It looks like the error messages are available in at least releases |
Thanks for looking into this! 👍 |
Checklist:
argocd version
.Describe the bug
When deploying a multi-source application that is referencing a repository that was not whitelisted in the AppProject (
sourceRepos
setting does not include the referenced repository), the application enters anUnknown
status and the underlying error is not really visible in the UI. It would be nice if the UI could provide a meaningful error message for this case, because the root cause is known. Also, when selecting the application in the UI while it is in this Unkown state, the UI crashes, displays a stacktrace, and will cease to work until I reload the page.You can currently dig into the Application's manifest and search for such errors in its
status
, but that is not obvious to non-experienced users of ArgoCD/K8s.To Reproduce
Deploy a multi-source Application that references a repository that is not whitelisted in the respective AppProject. After ArgoCD has synced, the Application will be displayed with an "Unknown" status in the UI. When you select this application in the UI, the UI will crash.
Expected behavior
ArgoCD should display a meaningful error message telling the user that the referenced repository is not whitelisted in the AppProject. The UI also shouldn't crash when selecting such a (arguably misconfigured) Application.
Version
The text was updated successfully, but these errors were encountered: