Closed dongsupark closed 7 years ago
Fixed a bug, and added a unit test for GetCanonicalImageName()
.
Fixed another bug handling hash names in the input image name. Tested, and it works. :-)
Exposed HashRegexp
, which is needed by https://github.com/kubernetes-incubator/rktlet/pull/137.
Two questions:
imagestore.PullImage()
?dockerPrefix
to the empty string?@iaguis
I changed PullImage()
as well, to let it make use of GetCanonicalImageName()
.
As for non-docker images, I'm not sure about how to deal with it. Any suggestions?
Is anything blocking us from merging this? ;)
Some users of rktlet apply a patch to the kubelet (and rktlet) to be able to use ACI images instead of docker ones so I was wondering if this PR makes that kind of patch more difficult. That's the only open question from my side.
If
rkt add app
runs with an image name without a prefixdocker://
, add a prefixdocker://
. If the image name doesn't contain:
, try to change it to a canonical name like "busybox:latest".This is especially needed for testing with cri tools.
Partly covers https://github.com/kubernetes-incubator/rktlet/issues/131