-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UPSTREAM: 33014: Kubelet: Use RepoDigest for ImageID when available #11674
UPSTREAM: 33014: Kubelet: Use RepoDigest for ImageID when available #11674
Conversation
[test] |
Previously, we used the docker config digest (also called "image ID" by Docker) for the value of the `ImageID` field in the container status. This was not particularly useful, since the config manifest is not what's used to identify the image in a registry, which uses the manifest digest instead. Docker 1.12+ always populates the RepoDigests field with the manifest digests, and Docker 1.10 and 1.11 populate it when images are pulled by digest. This commit changes `ImageID` to point to the the manifest digest when available, using the prefix `docker-pullable://` (instead of `docker://`)
can you check if we also needed upstream 29316 which we pulled previously, or is it already in? |
Evaluated for origin test up to 8a78ecf |
noting that 29316 is already in, so this is sufficient. LGTM |
[merge] |
re [merge] |
Evaluated for origin merge up to 8a78ecf |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10971/) (Base Commit: 90d8c62) (Image: devenv-rhel7_5296) |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10969/) (Base Commit: 90d8c62) |
Previously, we used the docker config digest (also called "image ID"
by Docker) for the value of the
ImageID
field in the container status.This was not particularly useful, since the config manifest is not
what's used to identify the image in a registry, which uses the manifest
digest instead. Docker 1.12+ always populates the RepoDigests field
with the manifest digests, and Docker 1.10 and 1.11 populate it when
images are pulled by digest.
This commit changes
ImageID
to point to the the manifest digest whenavailable, using the prefix
docker-pullable://
(instead ofdocker://
)