-
Notifications
You must be signed in to change notification settings - Fork 259
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
Git write back to helm values is incorrect during the first pass and corrupts existing data #884
Comments
There is this test that verifies a very similar setup to yours: argocd-image-updater/pkg/argocd/update_test.go Line 1505 in 60b89f2
The above test has 2 images in Note that the |
@chengfang I've removed the following line to mimic the values file I posted above (using the chart's default image spec) argocd-image-updater/pkg/argocd/update_test.go Line 1496 in 60b89f2
then run make test and got similar results to what I posted:
You can see the |
Note that when the image.name or image.tag keys do not exist in the target value file, the fields to be added can be either of the 2 formats for specified key like my.image.name: foo or my:
image:
name: foo |
In this line, the argocd-image-updater/pkg/argocd/update.go Line 593 in 60b89f2
|
Describe the bug
Using git write back with
helmvalues
and existingvalues.yaml
file with user data leads to incorrect data writes and corruption of user data.To Reproduce
/apps/test-app/values.yaml
in git repo:values.yaml
file is modified like this:Expected behavior
The expected
values.yaml
file:Additional context
Add any other context about the problem here.
Version
Using the
latest
image tag of argocd image updater.Logs
The text was updated successfully, but these errors were encountered: