Replies: 3 comments 3 replies
-
Hi @yogeek, Interesting question. Could you share more about your environment and how you apply manifests, e.g. do you use helm for example? Is the "GitOps controller" part of ArgoCD nowadays? I'm not sure what the current state is with "GitOps", but we used ArgoCD heavily at the company where this tool was developed. Enrico |
Beta Was this translation helpful? Give feedback.
-
Hi @estahn We have ArgoCD installed in each of our clusters. So if the "image" field is mutated, ArgoCd wil detect a drift and fix it by applying the state from GIT, and that would override the mutation by the original image. Guillaume |
Beta Was this translation helpful? Give feedback.
-
Even though nothing has happened here for a long time, I would like to get in touch with a similar problem. Here, too, there is a problem with the GitOps controller and the different variants between Git and the “real” status in K8s. In our case, the GitOps Controller would find a difference to the Git version and write a remapping to the image as in Git. At this point I also have to say that I'm not sure if we would end up with an infinite loop of k8s-image-swapper (change to ECR repo) and the GitOps controller (change to image as in Git). An option to only push images to ECR and not to swap them in the cluster would be optimal. This way the project can already be implemented to store / save the images and in a later step it can be evaluated how the process with image swapping / remapping should be implemented. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi !
First, this tool is a nice idea 👍
However, in a gitops environment where a controller (argocd, flux...) reconciliates the actual state (cluster resources) with the desired state in GIT, I do not see how this can be used as is. Indeed, the pod image would be mutated by image-swapper and right after that, the gitops controller would change the image name back to the one defined in GIT...
Do you have any idea how this tool could work nicely in a GitOps environment ?
(of course, we could configure the GitOps controller to "ignore" the changes on the "image" field but it would not be a satisfying solution as we would lost the update feature...)
Beta Was this translation helpful? Give feedback.
All reactions