-
Notifications
You must be signed in to change notification settings - Fork 5.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
Syncing sources in multi-source application depends on order of sources in spec. #20791
Comments
In the application, you specify |
However, I'm not sure, maybe it's supposed to override. |
@andrii-korotkov-verkada it should override
|
Hi there, I have the exact same issue. I don't think the order matter, I think it's more that ArgoCD is validating the first When you do that:
ArgoCD will try to find When do you that:
It seems it force ArgoCD to look for the correct revision in the source 2 (without the override, it would look for When you do:
It override The workaround here is the second command you ran, to force the revision on the source position 2, but it's not possible in the UI, so it's still a blocker. Thanks. |
This commit might be relevant a624c90. Not sure it fixes this specific issue, but worth a shot. Can you upgrade to 2.13 and see if the issue still happens, please? |
There might be a bug with getting ambiguous revision here https://github.com/argoproj/argo-cd/blob/master/server/application/application.go#L2219-L2223, since positions start from 1 and I think indexes start from 0. Let me confirm, though not sure it's related. |
@ishitasequeira, can you check the above and see if it's indeed a bug, please? |
Checklist:
argocd version
.Describe the bug
Getting errors when trying to sync multi source application depending on the order of sources specifed.
To Reproduce
Hi All,
I have a question regarding sync for multi source application, i have app defined as follows:
argocd app sync mirko-app1 --revisions multi-source --source-positions 1 FATA[0002] rpc error: code = FailedPrecondition desc = error resolving repo revision: rpc error: code = Unknown desc = invalid revision 'multi-source': improper constraint: multi-source
For position 2 it works
Now if i define application
mirko-app2
with sources in reverse order, where helm is now on 1st pos again I'm getting an error when trying to sync on 1st positionargocd app sync mirko-app2 --revisions 18.1.2 --source-positions 1 FATA[0003] rpc error: code = FailedPrecondition desc = error resolving repo revision: rpc error: code = Unknown desc = Unable to resolve '18.1.2' to a commit SHA
Expected behavior
Screenshots
Version
Logs
The text was updated successfully, but these errors were encountered: