-
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
The 'repo add' command incorrectly requires upsert flag #2925
Comments
@alexmt Face this issue in 2.1.0 again. Unable to add the repo. |
same here |
Experienced the Same Problem with Version 2.1.2. |
also experienced the same issue on v2.1.2 |
we had luck reverting to v2.0.2 |
@neelk-s1 2.0.4 is good as well. I am thinking the moment you go to the next minor version the trouble begins. |
Hi :)
And then any addtionnal |
Thank you @yogeek , i will check it today |
@pasha-codefresh thanks |
Seems to me that the issue is when you upgrade to the 2.1.x version. you can replicate the same from the UI as well. |
I've Upgraded from 2.0.1 to 2.1.2. Seems to work with a fresh Installation. When upgrading from a prior version the issue appears. |
IDK upgrading from 2.0.1 but 2.0.4 to 2.1.0 gives me this issue. |
I have tried
As result I got: "repository credentials for added" without any error. Still cant reproduce it :( |
I would propose improve this error message, "existing repository spec is different; use upsert flag to force update" with details what actually was changed |
I had the same problem when upgraded from v2.0 to v2.1.4. I had to manually removed the repo-**** secret where the SSH key was already defined. |
after updating from 2.0.5 to v2.1.3, Unable to add the repo. |
@pasha-codefresh I was working on another bug (#7369) which is somehow related to this one. There was a bug in the
@alexmt Do you think we can close this issue? |
@siddana123 can you please check if in the secret associated with your repo the following label is defined? labels:
argocd.argoproj.io/secret-type: repository |
Describe the bug
The 'repo add' command incorrectly requires upsert flag even if
repo add
command does not introduce any changes if repo configurationTo Reproduce
argocd repo add https://github.com/argoproj/argocd-example-apps
existing repository spec is different; use upsert flag to force update
Expected behavior
The upsert should not be required in this case
Screenshots
If applicable, add screenshots to help explain your problem.
Version
The text was updated successfully, but these errors were encountered: