Closed PierreBart closed 2 years ago
Thank you @PierreBart for reporting the issue.
I suggest we fix this by ignoring the push branch when:
For reference, that logic resides at: https://github.com/fluxcd/image-automation-controller/blob/65e004f1e885037c6a621cf7f55e46cf8a4eb3fd/controllers/imageupdateautomation_controller.go#L240
Describe the bug
After upgrading Flux from v2.29.5 to v0.32.0, the Image Automation controller throws the following error:
This ImageUpdateAutomation object is deployed on the cluster:
I am facing the same issue in v0.31.5 but not in v0.30.2.
Expected behavior
The Image Automation controller throws no error.
Kubernetes version
GKE 1.23.8
Git provider
Gitlab private repository.
Additional context
In Slack, @pjbgf noticed I use the same branch for pushing and pulling the sources in the
ImageUpdateAutomation
definition. He recommended I remove thepush.branch
field from the spec and that did fix the error.