Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
tests: Adds Windows RunAsUserName tests #79539
What type of PR is this?
What this PR does / why we need it:
Currently, Kubernetes supports running as different user (
Which is why the field
This PR adds E2E tests which will validate this behaviour. The tests are Windows only, and they will be skipped if
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
I'm getting one failure on my cluster:
I wonder if this is another test that inadvertently depends on host filesystem permissions instead of container permissions.
That test shouldn't run on Windows anyways. Keywords to look out for:
I have a PR which adds the
Currently, Kubernetes supports running as different user (RunAsUser), but it only supports UIDs, which does not work on Windows. Which is why the field SecurityContext.WindowsOptions.RunAsUserName was introduced, to allow us to run the container entrypoints with a different user than its default one. This commit adds E2E tests which will validate this behaviour. The tests are Windows only, and they will be skipped if --node-os-distro is not "windows".
[APPROVALNOTIFIER] This PR is APPROVED
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