Sadly, the current implementation does not recognise my maps and systematically returns the original image name (since it does not recognize the syntax for myregistry/subpath if subpath != library).
What I did next which was close but not good enough:
This was almost what I wanted except that I lost the "relative path from the original prefix" information.
This resulted in conflicts in the swapped image names.
In both examples above, we have two different source docker images yet the swapped image is the same (collision).
I cannot afford collisions so I ended up with the 3rd configuration below.
This technically works (the swap does not produce collisions) but I hate the extra long docker image paths.
I wish that I could get them shorter, as in my original proposal.
Would you accept some unit testing for your project, specially to test the different swapping algorithms?
Environment:
Kubernetes version (use kubectl version): v1.28.11
Cloud provider or hardware configuration: kubespray
Hello @phenixblue ,
Thank you for writing this very useful mutating webhook, which I would like to use to implement deploying our company app in an airgapped cluster.
I am struggling to configure standard maps to swap multiple subpaths of the same registry into different registries.
What I expected:
I would like to configure the following maps like this:
And to see the following results:
Sadly, the current implementation does not recognise my maps and systematically returns the original image name (since it does not recognize the syntax for myregistry/subpath if subpath != library).
What I did next which was close but not good enough:
I tried the following configuration:
This was almost what I wanted except that I lost the "relative path from the original prefix" information. This resulted in conflicts in the swapped image names.
For example:
Or worse:
In both examples above, we have two different source docker images yet the swapped image is the same (collision). I cannot afford collisions so I ended up with the 3rd configuration below.
What I end up trying (for now):
I ended up configuring the following maps:
This produces the following results:
This technically works (the swap does not produce collisions) but I hate the extra long docker image paths. I wish that I could get them shorter, as in my original proposal.
Would you accept some unit testing for your project, specially to test the different swapping algorithms?
Environment:
kubectl version
): v1.28.11