Search and Replace across all Repositories in a GitLab Instance

1 · Felix Breuer · March 23, 2024, 12:40 p.m.
We recently introduced container registry mirrors in our kubernetes cluster at containerd level. Since this day, every team specified the pull-through cache directly in the image name like: image: docker-cache.example.com/library/alpine. To remove docker-cache.example.com as single point of failure, all teams need to change the image name back to image: docker.io/library/alpine or image: alpine. A possible solution would be to write a mutating kubernetes webhook which alters the image name for e...