Replies: 3 comments 2 replies
|
Hi! As far as I can tell, the Kubernetes autodiscovery has no built-in way to map a registry prefix. Its only options are You can get the same result by writing the manifest yourself and doing what autodiscovery does, with a different image on each side. Check the tags upstream on Docker Hub, then write your mirrored path back with name: Bump debian (mirrored)
sources:
debian:
name: Get the latest debian tag from Docker Hub
kind: dockerimage
spec:
image: debian
tagfilter: '^\d+\.\d+$'
versionfilter:
kind: semver
targets:
debian:
name: Bump debian in the deployment
kind: yaml
sourceid: debian
spec:
file: k8s/deployment.yaml
key: $.spec.template.spec.containers[0].image
transformers:
- addprefix: "my-registry.com/docker-io/library/debian:"You can copy the key paths from To stop autodiscovery from also trying (and failing) on those images, add them to autodiscovery:
crawlers:
kubernetes:
ignore:
- images:
- my-registry.com/docker-io/library/debianOne thing to watch: this only updates the reference. If your mirror is synced by a job, not a pull-through cache, make sure the new tag exists in |
|
Thanks for the detailed explanation. It seems that the solution would be to add a new parameter like "registrymaping" where you could list source registry. This fix would be easy to handle and would reduce the maintenance of manifests |
|
I opened #11515 which will solve the problem |
Uh oh!
There was an error while loading. Please reload this page.
Hello!
I'm trying to use updatecli with a bunch of kubernetes manifests. It works nicely, however most of our images are mirrored in an internal registry, so checking the tags does not work. Is there a way to "map" paths like "my-registry.com/docker-io/" to "docker.io/" and check against that?
All reactions