-
Notifications
You must be signed in to change notification settings - Fork 311
Description
Describe the bug
ArgoCD Image Updater is correctly discovering that there is a new image in the registry, however it is unable to update the Application spec and fails with this error in the log:
Could not update application spec: stat /tmp: no such file or directory
I have verified that the Connected Repo is working(it says "Connection Status: Successful" on the Connected Repos page), and the Image Registry connection is also good as it is able to pull the tags.
To Reproduce
Create an Application in ArgoCD UI using the following annotations:
argocd-image-updater.argoproj.io/image-list: argocdapp=myregistry/argocd-test-app:0.0.x
argocd-image-updater.argoproj.io/write-back-method: git
argocd-image-updater.argoproj.io/git-branch: develop
argocd-image-updater.argoproj.io/argocdapp.update-strategy: semver
argocd-image-updater.argoproj.io/argocdapp.force-update: "true"
Expected behavior
I would expect that the new image would get deployed into K8S, and the new image version would be committed back to git successfully.
Additional context
Kubernetes: Minikube
Running on MacOS (M2 Max)
Version
ArgoCD Version: v2.6.7+5bcd846
Image Updater Version: 0.12.0
Logs
time="2023-05-01T16:51:33Z" level=info msg="Setting new image to myregistry/argocd-test-app:0.0.5" alias=argocdapp application=cid-uat-build image_name=argocd-test-app image_tag=0.0.2 registry=myregistry
time="2023-05-01T16:51:33Z" level=info msg="Successfully updated image 'myregistry/argocd-test-app:0.0.2' to 'myregistry/argocd-test-app:0.0.5', but pending spec update (dry run=false)" alias=argocdapp application=cid-uat-build image_name=argocd-test-app image_tag=0.0.2 registry=myregistry
time="2023-05-01T16:51:33Z" level=info msg="Committing 1 parameter update(s) for application cid-uat-build" application=cid-uat-build
time="2023-05-01T16:51:33Z" level=info msg="Starting configmap/secret informers"
time="2023-05-01T16:51:33Z" level=info msg="Configmap/secret informer synced"
time="2023-05-01T16:51:33Z" level=error msg="Could not update application spec: stat /tmp: no such file or directory" application=cid-uat-build
time="2023-05-01T16:51:33Z" level=info msg="configmap informer cancelled"
time="2023-05-01T16:51:33Z" level=info msg="secrets informer cancelled"
time="2023-05-01T16:51:33Z" level=info msg="Processing results: applications=2 images_considered=2 images_skipped=0 images_updated=0 errors=1"