-
Notifications
You must be signed in to change notification settings - Fork 21
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
Rework image pull check in E2E tests #196
Rework image pull check in E2E tests #196
Conversation
/assign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
LGTM label has been added. Git tree hash: 4424b599e6dbf846c7ad59f1194bd6278be60b20
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ialidzhikov The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
How to categorize this PR?
/area testing
/kind test
What this PR does / why we need it:
Rework the image pull check in E2E tests.
The image pull check now use root pod executor and runs the following commands on the Node where the registry Pod is running:
jq -j '.mounts[] | select(.destination=="/var/lib/registry") | .source' /run/containerd/io.containerd.runtime.v2.task/k8s.io/<registry-container-id>/config.json
to get the location of '/var/lib/registry' mount on the Node.cat <mount-location>/docker/registry/v2/repositories/<image-path>/_manifests/tags/<image-tag>/current/link
to get the image index blob location.jq -j '.manifests | length' %s/docker/registry/<image-index-blob-path>/blobs/%s/data
to verify it is valid image index.This will allow
distroless
to be used as the base registry image and will solve E2E flakes caused by the missingscheduler-state.json
file.Which issue(s) this PR fixes:
Part of #3
Special notes for your reviewer:
N/A
Release note: