-
Notifications
You must be signed in to change notification settings - Fork 313
Feature/allow no exists helmvalues file #1212
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
Feature/allow no exists helmvalues file #1212
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1212 +/- ##
==========================================
+ Coverage 63.33% 63.52% +0.18%
==========================================
Files 23 23
Lines 3175 3191 +16
==========================================
+ Hits 2011 2027 +16
Misses 1054 1054
Partials 110 110 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I noticed your target helm values file is named ".argocd-source-xyz-app-test.yaml". Do you still see the problem when the name does not start with |
actually the pattern of filename is not limited here, I just named with prefix Further more, as I understand, So in another case, if remove |
93ab139 to
c1f99cc
Compare
Signed-off-by: William Wang <[email protected]>
Signed-off-by: William Wang <[email protected]>
Signed-off-by: William Wang <[email protected]>
c1f99cc to
496c5bf
Compare
Signed-off-by: William Wang <[email protected]> (cherry picked from commit cc9f71b)
I have a multi sources Application like below
after deploy this app, argocd image updater will show failed logs
I found this is because when target file not exists, it will use
niloriginalData to marshal params override, which will failed when try to set helm value to wrong kind of yaml Node, like it explained here.and the call entry is like below:
argocd-image-updater/pkg/argocd/git.go
Lines 319 to 337 in c6167ec
This pr is intend to solve the problem by create a empy yaml.DocumentNode when originalData is nil, Therefore commit a new file to git when target file is not exists.
a new files likes:
This may solve #1108 .