-
Notifications
You must be signed in to change notification settings - Fork 228
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
[Help] Image Discovered but Not Updated #665
Comments
Hi @sheldontsen-qb , you need to use alias name on strategy:
Good Day! |
Thanks @ML-std, I was following here (https://argocd-image-updater.readthedocs.io/en/stable/configuration/images/#application-wide-defaults) where it says you can do application wide, and I tried with alias earlier. Let me try again. Update: You can see the SHA changing but it still does not update unfortunately :/
My annotations:
|
@sheldontsen-qb I'm not sure about this, but can you try deleting tag from values.yaml and give it an empty string:
ArgoCD may try to override sha with latest, resulting no update. |
Hmmm thanks for the response! Unfortunately no luck. This is the new values file:
ArgoCD outright complains:
Should I also update the deployment to remove tag?
But without this, how would image-updater work? |
have you added your private registery to image-updater config?
then, you can remove localhost:5000 from youe image:
you shouldnt remove the tag |
Thanks @ML-std! Yes indeed, I have my private repo added to the configmap:
(I omitted defaultns) I can confirm it is picked up because the logs right after initialisation show that it found an extra registry in the config. So defo works. Also from the logs its quite clear the registry is picked up. But when I followed your suggestion to change from
Reintroducing
:/ |
Hmm, should it be related to registery? It has to detect the registery without you adding it to the image name. In our project, we use Harbor for OCI, and it works perfectly fine. Can it be related to that maybe? |
Hmmm, I use
Which from the docs (https://hub.docker.com/_/registry) seems to be OCI compliant. |
I had a similar problem too. Hope this helps some one! I dug around with this one for quite a while and finally figured it out. On my Mac (running in Kind with registry:2), I also got that same log line containing "ignoring v2 manifest", which is written here. What is not logged, is the variant of the image and that was in my case "v8" resulting in "linux/arm64/v8". Adding this to the platforms annotation solved the issue:
Also, in the documentation, platform-annotation is missing the s (or does it work without?). |
Describe the bug
Not really a bug, more like me missing something. Would appreciate a bit of help.
To Reproduce
These are the logs produced (slightly sanitised):
Note the
sha256
part changes when I push a new image using the following commands:Ignore the
localhost
part, that is translated to the right registry calledmy-registry
, and I can confirm the pods can pull from this private/local registry.I've also annotated my ArgoCD app:
And my deployment spec is:
When I run the CLI:
It does find it.
I must be doing something wrong but I'm not sure what! Does it have something to do with
Invalid Semantic Version
? If so, what? Any help would be appreciated. Thank you!Note: I just want to point to
xxx:latest
and let it update automagically.PS: Really neat stuff - k8s newbie.
Update, I went through the docs again and followed the Helm parameters part, changing my helm deployment file to:
And my values file has:
Still no luck :/
The text was updated successfully, but these errors were encountered: