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
test images: uses nanoserver #89425
test images: uses nanoserver #89425
Conversation
/cc @adelina-t |
bf65ff3
to
1e7d06e
Compare
6481c6c
to
5fcc809
Compare
5fcc809
to
57317aa
Compare
60a74f3
to
68fe365
Compare
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.
I can't speak to the windows specifics; this looks reasonable however I have one nit
@@ -17,40 +17,131 @@ limitations under the License. | |||
package dns | |||
|
|||
import ( | |||
"bytes" | |||
"os/exec" | |||
"fmt" |
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.
line unrelated
Is there any particular reason we don't have // +build windows
as line 1 of this file?
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.
Sure, it felt redundant, we were already relying on the file name suffix for that (conditional compilation can also be done through filename suffix). Added that line now.
b3f4d89
to
ed00653
Compare
needs rebase |
ed00653
to
732705b
Compare
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.
/approve
/lgtm
Using Windows nanoserver container images as a base instead of the current Windows servercore image will reduce the image size by about ~10x. However, the nanoserver image lacks several things we need: - netapi32.dll - powershell - certain powershell commands - chocolatey cannot be used When building the nanoserver images, we are going to use a Windows servercore helper, in which we are going to install the necessary dependencies, and then copy them over to our nanoserver image, including necessary DLLs. Other notable changes include: - switch from wget to curl (wget was a powershell alias). - implement in code getting the DNS suffix list and DNS server list. - reimplement getting file permissions for mounttest.
732705b
to
46c820e
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: claudiubelu, spiffxp 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 |
@claudiubelu: The following tests 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. Instructions 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-e2e-azure-disk-windows |
Can the /lgtm be reapplied? |
/lgtm |
/lgtm |
What type of PR is this?
/kind feature
/sig testing
/sig windows
What this PR does / why we need it:
Using Windows nanoserver container images as a base instead of the current Windows servercore image will reduce the image size by about ~10x.
However, the nanoserver image lacks several things we need:
When building the nanoserver images, we are going to use a Windows servercore helper, in which we are going to install the necessary dependencies, and then copy them over to our nanoserver image, including necessary DLLs.
Other notable changes include:
Which issue(s) this PR fixes:
Partially Fixes #77268
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: