-
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
AppController: error calculating server side diff with 2.10-rc1 #16840
Comments
@prune998 I can't access the repo in |
The application is on a private repo that I can't share, but you could simply create an application in your test setup and targert a repo that containes the provided ex:
Then the file
and the file
|
I suspect that you are facing a problem with namespace creation + server-side apply issue which is reported in #13874. Can you please try disabling Server-Side apply but keep ServerSide Diff enabled? |
testing, even if the namespace already exist and contains some resources... |
I tested:
And it failed with the same error. Going to create a repo with the helm chart + everything needed... |
testing with https://github.com/prune998/argocd-2.10-ssd now |
I made 2 more push, and I effectively had to add "ServerSideApply=false" else nothing was deploying (even the namespace that I explicitelly create...) Turning "ServerSideDiff=true" still show the same error
|
I tried updating the chart to solve the The modified helm chart is in the |
I tried removing things from the chart, and it seems the |
@prune998 I am able to reproduce the bug. I'll work on the fix and reply back. |
The fix done as part of PR argoproj/gitops-engine#563 seems to fix the error. The application sync was not complete, but still the error `namespace "crossplane" is not found" was resolved. Used the application provided as part of the reproducer and additionaly enabled helm in argocd-cm config map using the following command.
|
@prune998 Fix is implemented as part of argoproj/gitops-engine#562 and is now merged in master. |
Yep I saw that. Wil ltry to give it a shot tomorrow. Thanks for the help and patch ! |
Describe the bug
When enabling the
server side diff
in the Application, the app stays out-of-sync with an error:The Application is synced fine when setting the option back to false:
To Reproduce
ServerSideDiff
:The repo contains a
kustomized
application that use the Helm Inflator:Note:
setting
IncludeMutationWebhook=false
but keepingServerSideDiff=true
shows the same behaviour so it's not linked to the Weebhook.commenting out the
helm chart
from thekustomization.yaml
file resolved the issue. But thehelm chart
is working fine without the server-side diff option...using the
minecraft
chart shows no problem.The Crossplane chart does generates sync errors because of the
divisor
added by K8s that is not part of the chart, so theignoreDifferences
is added in the App. The server-side sync issue is the same with or without thisignoreDifferences
option. In fact, I was expecting that the server-side diff would solve this diff issue even without theignoreDifferences
.Expected behavior
The App should deploy just fine, which it does with the same Application when setting the option
ServerSideDiff=false
Version
v2.10.0-rc1+9ad5cd6.dirty (This is a custom build 2.10-rc1 from release-2.10 branch)
Logs
The text was updated successfully, but these errors were encountered: