-
Notifications
You must be signed in to change notification settings - Fork 38.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
Adding e2e tests to validate volume mounts in HostProcessContainers on Windows #105996
Adding e2e tests to validate volume mounts in HostProcessContainers on Windows #105996
Conversation
@marosset: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
/priority important-soon |
test/e2e/windows/host_process.go
Outdated
podName := "host-process-volume-mounts" | ||
username := "NT AUTHORITY\\SYSTEM" | ||
hostPathDirectoryOrCreate := v1.HostPathDirectoryOrCreate | ||
pod := &v1.Pod{ |
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 think it will be easier to read the flow of the test if this was in a separate function as well.
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 moved the pod defintion to a new function - makeTestPodWithVolumeMounts()
test/e2e/windows/host_process.go
Outdated
|
||
trueVar := true | ||
podName := "host-process-volume-mounts" | ||
username := "NT AUTHORITY\\SYSTEM" |
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.
does the user matter here? do we want to test any others?
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 don't think it matter. What username do you suggest?
c85fbbc
to
edc6896
Compare
edc6896
to
06e8031
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: marosset 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 |
@jsturtevant i've made most of the requested updates PTAL |
|
||
logs, err := e2epod.GetPodLogs(f.ClientSet, ns.Name, podAndContainerName, podAndContainerName) | ||
framework.ExpectNoError(err, "Error getting pod logs") | ||
framework.Logf("Container logs: %s", logs) |
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 was thinking this should only be done in the case of failure so it would help understand why this test might have failed from reading the test logs. I don't think the logs would be verbose in the success state so It might be fine here
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.
Yea, right now i'll just output SUCCESS which shouldn't bloat the logs too much.
…n Windows Signed-off-by: Mark Rossetti <marosset@microsoft.com>
ccc0679
to
5dffdfc
Compare
/lgtm |
Signed-off-by: Mark Rossetti marosset@microsoft.com
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds e2e tests to validate volume mounts in HostProcessContainers on Windows
Which issue(s) this PR fixes:
Part of kubernetes/enhancements#1981
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/sig windows
/area test
/milestone v1.23
/assign @jsturtevant