Adds test which pulls dockerhub Windows image#72777
Adds test which pulls dockerhub Windows image#72777k8s-ci-robot merged 1 commit intokubernetes:masterfrom
Conversation
|
Hi @BCLAU. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@BCLAU problem is that it will not match the description |
|
@dims Well, the busybox image is pulled from the "dockerLibraryRegistry"[1], so it would still be on docker hub. The image used should be configurable, somehow, since it is OS dependent. Not only that, but for Windows Server 2019, we cannot run containers with images based on Windows Server 1803 and vice-versa, so I couldn't simply hardcode an image name like "microsoft/windowservercore:1803" in a test. [1] https://github.com/kubernetes/kubernetes/blob/master/test/utils/image/manifest.go#L99 |
|
@dims since upstream busybox doesn't publish Windows images, we could pick another image. https://hub.docker.com/_/golang seems to have extremely broad support On Windows 10 (with Docker for Windows - Linux mode) On Windows Server 2019 |
|
/milestone v1.14 |
d0c1faa to
a0d83bf
Compare
|
@PatrickLang nice find! I've updated the PR to pull the golang image instead. The test passes on WS 2019 nodes. It will require the --node-os-distro flag to be passed though, since we can't run the same command on Windows as on Linux (it was possible with the busybox image though). |
|
@BCLAU wouldn't |
|
@PatrickLang you mean |
|
@dims Hmm, no. |
|
Indeed. I couldn't find a proper command which does the same thing and be valid on both OSes. |
|
|
|
ah yes good idea @benmoss One caveat - be sure not to do this if you're using a Windows image with the shell set to PowerShell. It has an alias from |
|
is there anyone that still has objections on this PR and the implementation of ping or the choice of the image? |
|
/lgtm |
|
So, if we are to add a test with our own image which has manifest lists, it would look something like this. Ofc, the repo name will be changed to "e2eteam" after we've verified that they're good and after they've been pushed to the "e2eteam" repo. |
test/e2e/common/runtime.go
Outdated
There was a problem hiding this comment.
so i guess we need to hold this PR until:
- we can have this image in a official account somewhere?
- add an [WindowsOnly] alternative to the test case "should be able to pull image from gcr.io [LinuxOnly]","
is this correct?
There was a problem hiding this comment.
Regarding the official account, the e2eteam repo is what we've created to be used by CIs ( https://testgrid.k8s.io/sig-windows#Conformance%20acs-engine%20on%20Azure ) and they are actively maintained and kept up-to-date, so I think that's a good enough.
Regarding the 2nd point, We could push the busybox image to gcr.io as well, I can look into it, but that could also be done in a separate PR.
Updated the repo name to e2eteam.
There was a problem hiding this comment.
that could also be done in a separate PR.
ok, agreed.
could you please add TODO about the GCR test for Windows?
4413b87 to
40bfa62
Compare
|
it looks like we are close to finalizing this. great job @BCLAU . i will approve this with a hold so that you can remove the hold when ready to merge. please make sure to create the second PR for pushing the image to gcr.io. /hold |
|
/lgtm |
|
/assign @timothysc @vishh this also needs a follow up PR to support GCR too. |
40bfa62 to
609b5c3
Compare
|
So, it seems that storing and pulling images from gcr.io is not quite free [0], so I didn't upload any image. I am assuming that someone is sponsoring some gcr.io repos, since there are 2 repos used in E2E tests (gcr.io/kubernetes-e2e-test-images, gcr.io/k8s-authenticated-test). Any idea how to upload a manifest list there, or who could? |
|
/lgtm
@BCLAU gcr.io hosting is sponsored by google, at the moment. we need to coordinate the push to the registry with maintainers on slack. |
|
/hold cancel |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bclau, michmike, timothysc The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@BCLAU: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/test pull-kubernetes-verify |
What type of PR is this?
/kind failing-test
/sig testing
/sig windows
What this PR does / why we need it:
Updates the test "should be able to pull image from docker hub" to pull
the golang image instead of alpine, which can also be used on Windows,
allowing the test to pass on both OSes.
Which issue(s) this PR fixes:
Related: #69871
Special notes for your reviewer:
Does this PR introduce a user-facing change?: