Skip to content
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: initial powershell test for windows nodes #5635

Merged
merged 29 commits into from
Jan 28, 2025

Conversation

timmy-wright
Copy link
Contributor

@timmy-wright timmy-wright commented Jan 22, 2025

What type of PR is this?

/kind chore

What this PR does / why we need it:

This PR adds some e2e tests for Windows VHDs and some infrastructure code to execute arbitrary commands on a windows VHD as part of the e2e tests. It's got some - currently unused - code to check kubelet command line params as well, that's still in progress, but I want it checked in so I don't loose it.

Note that to do this, I had to change the execOnVm method to not add "sudo" to every command executed on the VM. That broke Windows tests because sudo is not a powershell command. Now the sudo is part of each test - which is probably cleaner. It seems that some existing linux tests prob didn't need to run sudo, but I didn't want to check each one just in case it was necessary.

Which issue(s) this PR fixes:

Fixes #

Requirements:

Special notes for your reviewer:

Release note:

none

e2e/exec.go Show resolved Hide resolved
e2e/exec.go Show resolved Hide resolved
e2e/exec.go Show resolved Hide resolved
@timmy-wright timmy-wright merged commit 9255754 into master Jan 28, 2025
15 of 16 checks passed
@timmy-wright timmy-wright deleted the timmy/windows-tests branch January 28, 2025 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants