-
Notifications
You must be signed in to change notification settings - Fork 265
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
Multiple helm sources: skipping app of type '' because it's not of supported source type #558
Comments
I have the same issue, thanks for reporting it @admssa Until this problem gets fixed, the only thing we can do in order to continue using the image updater with helm is to use only one source repository in the application manifest. |
I have the same problem too. If we use |
Thank you for reporting! |
Same problem here. Pretty important for us as it breaks our preferred development flow. |
Any news on this one? |
What's the status on this one? We would really like to be able to use a common helm chart and the image updater together and this is blocking. |
First time today wanted to play with image-updater , but we also plan to use multiple sources : ((( |
Tested @deferraz PR#578 by building image from feature branch. However, |
@filipprosovsky , I opened this PR #636 that may help with the "git" write back method. Just let me know if that helps. |
Hi. It's there any workaroun to make multiple sources work with this tool? |
2024 here :) |
Any news? |
any news ? |
looking forward for that fix. |
Checking in as well. Can see that PR #636 is merged. Does that cover all the needed use cases? Is there a release where this functionality is targeted? |
Update please? |
A new release has been published a few days back, please check if it solves for you. For me, the fix is working! |
Works! I tested (0.13.0 image) argocd app updates and write back changes to git repo. Thanks argocd image updater team! |
and for write-back-method == git The last one i trying investigate why argocd is not sync after merge. |
@mecsys , thank you! It becomes more clear now. I see it still works with parameter overrides, but my expectations were to have changes commited directly in values.yaml file in the image.tag |
Hi @zagr0 , I think that the annotation "argocd-image-updater.argoproj.io/write-back-target: helmvalues" is missing in the configuration. This annotation is used to specify the values file you want to use for the writeback. I checked the argocd-image-updater documentation for release v0.13.0 and it seems that it's not updated with the changes of the PR #636 . This is a direct link to the file of that PR with the "helmvalues" documentation. I hope this helps. Cheers! |
@zagr0 , could you please share the current configuration you are using for the application manifest please? That may help to understand if there is some misconfiguration or the code does not support it yet. |
sure, my app is:
the repo tree:
values file content:
|
@zagr0 , maybe this comment will help to understand the behaviour. The thing is that argocd-image-updater uses to different pieces of information that should match in order to work properly, one is the "alias" name that you use for the image and the other one is the docker image name. If those names do not match, then it will throw that error. I understant that this is a bug that should be addresses, I just did not have more time to spend since the last time I did the PR. I'm sorry about that. I hope the info will help. |
@askhari , thank you very much to make it clear! Unfortunately I'm not able use alias with the value of image name
|
Hi @zagr0 , I did a quick read to the code again and I'm not really quite sure if this will work, but could you try to use this configuration for your annotations and see what happens please?
I know that this configuration is a bit crappy as there are two annotations that just repeat themselves with a slight different syntax. There is a function called normalizedSymbolicName() that substitutes the "/" character for "_", but it's not used in all the references used to build annotation names in the code. For what I read in the code I think it may work only for this case and configuration. Not sure if this helps. I'm sorry for the inconveniences. |
hi @askhari , I tried the example but got error complaining about annotation key names:
|
Hi @zagr0 , It was my mistake thinking that I could use the "/" character. I'm sorry for the error. I though it was worth to try it because the code reads the annotations in multiple parts. But in some of them uses a function which replaces the "/" from the image name with "_" characters. And in other parts of the code uses directly the ImageName value without replacing the "/". Again, sorry because I may wasted some of your time with this tests. I'll try to free some time to work on a fix for this asap, but I'm not sure if it will be this week. |
Thank you very much @askhari ! Most probably there are image builds with latest tag from master, I will check it. |
Hi @askhari , I have verified with my scenario and now there is no issues with finding image name, this part works, but the changes committed to Image updater was not able to discover
In addition to that image updater recreated content of the |
here is the issue |
@zagr0 , thank you for the feedback. As I understood there are two different issues (please correct me if I'm wrong):
The first thing was fine for us, but I understand that it makes more sense to navigate the hierarchy. I'm already working to solve this two issues on this branch of my fork and I'll make a PR shortly: https://github.com/askhari/argocd-image-updater/tree/fix/helm-values-wbc. Again, thank you for noticing it. Cheers! |
@askhari thank you so much for working on this! Aren't we waiting for a new version of the image-updater here...to get the fixes you've done? Thanks. |
Describe the bug
The problem is that when you store helm values files in a separate repo you use
spes.sources
instead ofspes.source
in your Application manifests. Thus instead ofsourceType
string in application status we will havesourceTypes
array.Unfortunately argocd-image-updater check for
sourceType
only:argocd-image-updater/pkg/argocd/argocd.go
Lines 520 to 533 in 49825ec
To Reproduce
Replace values surrounded by << >> and create Application with 2 sources and follow the logs:
Version
0.12.2
Logs
The text was updated successfully, but these errors were encountered: