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
Synchronization for ConfigMaps over 262144 bytes does not work, when Replace=true flag is specified #7131
Comments
This still appears to be an issue. I've seeing it currently. I tried to read around, google a bit, but haven't come up with much...and I'm not sure how to fix or debug this. ANY help would be much appreciated. In ArgoCD, the Error being displayed is:
I've adapted my approach by following the same pattern that argocd-autopilot takes with its bootstrap method...with my own slight modifications. This is where the code lives: https://github.com/armenr/5thK8s/tree/main/dependencies/bootstrap After installing and configuring argo-cd, this is the only file I kubectl apply -f in order to "bootstrap" all the other ArgoCD projects and apps: https://github.com/armenr/5thK8s/blob/main/dependencies/bootstrap/autopilot-bootstrap.yaml |
I have argocd : I don't have that cm in my cluster
|
the sync didn't work, but if I use the --replace flag it works. I'll use that as a workaround. |
Hi @crenshaw-dev , I see that you have re-opened the issue. Any reason ? I was testing this feature for one of the users and everything is working as expected. This is the dummy configmap which I used for testing. Steps:
|
Checklist:
argocd version
.Describe the bug
Synchronization for ConfigMaps over 262144 bytes does not work, when Replace=true flag is specified.
Related issues: #5704 #820
To Reproduce
Tested on minikube:
Run the following steps to reproduce:
Open http://localhost:8080 in the browser. Login with "admin" and password you got earlier. Open the application, you will see that it failed to synchronize because of:
ConfigMap "rancher-monitoring-crd-manifest" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Expected behavior
Synchronization for ConfigMaps over 262144 bytes works, when Replace=true flag is specified.
Screenshots
Version
Affected versions (helm chart - argocd version):
Not affected versions (helm chart - argocd version):
The regression is introduced between v2.0.5 and v2.1.0 releases.
Logs
The text was updated successfully, but these errors were encountered: