feat: update several path for image.tag #793
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello folks!
I made this improvement to handle a case we have at work. Let's explain it.
In the current case, we provide a path for the image tag with the annotation
.helm.image-tag
. It says where to update the tag for this argoCD application.Now, I have one ArgoCD application with two deployements, different with a suffix. Let's call them
a
andb
. So my helm-chart values are prefixed by the alias of each app.I want to update both at the same time, the lifecycle is identical. This merge request allows to do it, by adding several paths as value separated by a comma. Then, I can provide
xxxx.helm.image-tag=a.image.tag,b.image.tag
A unit test has been added about tag and name and moreover, I handled every space to ensure it won't have any bug for a mistype.
Finally, I build the customized image and tested, all is OK for me.
I hope all is clear!
Thank you for your work, I love this project.
Cheers!