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
Helm parameters defined in Application CRD are overriden by .argocd-source-<app>.yml #6665
Comments
I am running argocd v2.1.7 and have labeled an app for usage with image updater v0.11.0. I am using argocd-image-updater.argoproj.io/write-back-method=git.
|
@vanko1987 I don't know if it's the same issue, what I observed is that helm parameters you set in Application CRD are not taken into account at all in the |
This also happens to me with version v2.5.2+148d8da and a helm chart in git directory ( The |
We also hit this bug. ArgoCD Image Updater persists App params set from Appset + it’s image tag overrides in the However if later we add additional parameters in ApplicationSet i.e.:
They will be visible in ArgoCD UI but they won’t be applied with helm template until ArgoCD Image Updater has a new image to write in So despite that we introduce a new parameter i.e. My guess is that it would be very hard for ArgoCD Image Updater to track all those App/Appset params changes and commit them to git file. It’s not its job anyway. So ideal thing would be if ArgoCD would be merging params from the file (higher priority) with missing/additional params from the Application params. |
I bet it's poor merging logic. Instead of merging the We probably just need to improve that merge logic, but we'll need to make it opt-in so people don't suddenly find that their apps behave differently than they used to. |
I believe this is the problem line. We just need to use a better-informed merge tool: argo-cd/reposerver/repository/repository.go Line 1453 in 2cf96fa
|
Checklist:
argocd version
.Describe the bug
Helm parameters defined in Application CRD are overriden by .argocd-source-.yml
To Reproduce
Create an Application with Helm parameters and valueFiles defined (I didn't test without valueFiles defined so this might also be linked) :
Add an .argocd-source-.yml in the same path as Application.spec.source.path with other Helm parameters :
--set
option defined for those helm parametersExpected behavior
I expect helm parameters from Application CRD and helm parameters from .argocd-source-.yml to be somewhat merge using
--set
option of Helm.Version
argocd: v2.0.4+0842d44 BuildDate: 2021-06-23T01:27:53Z GitCommit: 0842d448107eb1397b251e63ec4d4bc1b4efdd6e GitTreeState: clean GoVersion: go1.16 Compiler: gc Platform: linux/amd64```
Tell me if you need any more information or context
The text was updated successfully, but these errors were encountered: