-
Notifications
You must be signed in to change notification settings - Fork 237
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
Not able to use GIT write back with chart from helm chart repo in repoURL #423
Comments
+1 |
1 similar comment
+1 |
hi, my workaround is using app-of-apps pattern
app-of-apps.yaml
application.yaml
kustomconfig.yaml - to tell kustomize to overwrite those values use following configuration
kustomization.yaml
|
Looks interesting! @filiprafaj could you please complete your example, its kind of hard to understand:
|
@flozzone app-of-apps.yaml is something like this
|
@filiprafaj nice hack but this work around would probably not work if the Helm chart define tags and image as separate values. Most of the charts write the image structure like this: image:
repository: nginx
tag: 1.23.1 |
you're right :) I use it only on my own charts |
Is there any workaround for this? I am using the helm chart from AWS ECR OCI, and it seems the same error occurs. Argo Image Updater cannot commit to git since it is a helm repo.
This issue makes the image updater so bad since we are using helm repo to deploy instead of directly pointing to the Git repo containing the chart manifests |
@AnhQKatalon - I worked around this by creating a "local" chart (in the ArgoCD repo) that has the upstream chart as a dependency. I also had to override the image tag and image repository keys to target the dependency. The override values get created inside the local helm chart directory and Argo applies them. |
@filiprafaj - can you please elaborate your setup and solution? Not able to follow. |
hi @rakeshramakrishnan-hbk, I have updated my comment to be more clear |
Hi @filiprafaj - I'm trying to make this work in my environments (thank you so much btw for this work around). If you don't mind, are you using an app-of-apps pattern w/ multiple applications inside and all are sharing the
value? Would you be so kind as to share how you store your |
Hi @devopsidiot , at the moment I use something like this https://github.com/filiprafaj/argocd-image-updater-helm-demo The new thing there is the Deployment in the app folder - thanks to this I don't need the (btw for some large images I use |
@filiprafaj - thank you SO MUCH. Just one final question and I think you've given me the keys to my kingdom: The image updater HAS to be installed in the app-of-apps? I currently have it installed elsewhere but it has access to all namespaces. |
@devopsidiot I have image uptater running in the |
Describe the bug
Using GIT write back together with Helm Chart from Helm Chart repository in repoURL isn't supported, because the ArgoCD image-updater tries to resolve the URL under
spec.source.repoURL
as the GIT repository to create update-commits, but since its a Helm repository, this fails with:To Reproduce
Create a Application resource like the following one:
Expected behavior
Having ArgoCD image updates committed to GIT
Additional context
One would expect to have a annotation based configuration alternative to set repoURL to a separate GIT repository url, looking like:
Version
quay.io/argoprojlabs/argocd-image-updater:v0.12.0
Logs
The text was updated successfully, but these errors were encountered: