You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
I tried mapping docker.io to my local Harbor pull cache project, which resulted in the mapped host appearing twice in the pod container image.
How to reproduce it (as minimally and precisely as possible):
I don't believe the port is relevant here, but still using the locally hacked version to get around that until the next release with the :: change.
default:
docker.io:localhost:30003/dockerhub
Anything else we need to know?:
I figured maybe adding an empty entry for localhost: would have been enough to override the second pass which was apparently triggered according to the logs, but that didn't work. Looks like this will happen for any target host that doesn't have a . in it, just not sure that will ever be an issue for anything other than localhost. I was able to get a hack working to bypass the issue for now.
if"."inimage_split[0] andimage_split[1] !=""andimage_split[2] !="":
image_registry=image_split[0]
elifimage_split[0].lower().startswith("localhost"):
image_registry=image_split[0]
else:
# Set docker.io if no registry is detectedimage_registry="docker.io"no_registry=True
Environment:
Kubernetes version (use kubectl version): 1.20
Cloud provider or hardware configuration: AWS/EKS
Others:
The text was updated successfully, but these errors were encountered:
Actually just occurred to me after submitting this bug that using 127.0.0.1 might be another viable workaround. I'll give that a try and see how it goes.
What happened:
I tried mapping docker.io to my local Harbor pull cache project, which resulted in the mapped host appearing twice in the pod container image.
What you expected to happen:
The substitution should only happen once.
How to reproduce it (as minimally and precisely as possible):
I don't believe the port is relevant here, but still using the locally hacked version to get around that until the next release with the
::
change.Anything else we need to know?:
I figured maybe adding an empty entry for
localhost:
would have been enough to override the second pass which was apparently triggered according to the logs, but that didn't work. Looks like this will happen for any target host that doesn't have a.
in it, just not sure that will ever be an issue for anything other than localhost. I was able to get a hack working to bypass the issue for now.imageswap-webhook/app/imageswap/imageswap.py
Line 262 in d7d8d65
Environment:
kubectl version
): 1.20The text was updated successfully, but these errors were encountered: