Commit graph

6 commits

Author SHA1 Message Date
zylxjtu
d99f9d309f Fix util_system_windows windows token handling
This change updates the Windows e2e node helper to read container job-object affinity through a host-scoped SYSTEM token instead of relying on the current elevated process context.

On Windows, an Administrator process is not enough to inspect a container silo job object in all cases. The previous approach could hit access-denied failures because the security boundary is enforced on the job object itself, and tokens from silo-scoped SYSTEM processes are still insufficient for cross-silo access.
2026-07-01 14:48:00 -07:00
zylxjtu
fef0aca1d4 e2e_node_windows: add CPU manager shared-pool and strict-reservation tests
Extend the Windows CPU manager node e2e suite with coverage that was
present on Linux but missing on Windows:

- strict-cpu-reservation: with the policy option enabled the reserved CPU
  is excluded from the burstable shared pool; without it (default) the
  reserved CPU stays in the shared pool.
- dynamic shared-pool resizing: a running burstable container's affinity
  shrinks and grows via the CPU manager reconcile loop as a guaranteed
  pod takes and releases an exclusive CPU.

Toggling strict-cpu-reservation invalidates the persisted CPU manager
checkpoint (the reserved CPU moves in/out of the default pool), so the
kubelet refuses to start until the state file is removed. Implement the
previously no-op deleteStateFile on Windows and clear the CPU/memory
manager state files when toggling the option, mirroring the Linux
updateKubeletConfig(..., deleteStateFiles=true) behavior.
2026-06-17 21:43:03 +00:00
zylxjtu
c7292e0a74 e2e_node_windows: add CPU affinity tests
Add the Windows node e2e CPU affinity tests and the supporting suite
plumbing: fix the build and drop the dependency on test/e2e_node by
porting the kubeletconfig, criproxy and testing-manifests subpackages
locally (CRI proxy uses a Windows named pipe).
2026-06-15 17:36:51 +00:00
Sergey Kanzhelev
d74b5907d5 builder pattern in cri client 2026-06-09 09:24:06 -07:00
zylxjtu
c8ae823187 Address the comments and fix the lint related issue 2026-05-28 17:06:15 +00:00
zylxjtu
312d00189c Add Windows node-level e2e tests to a dedicated directory
Introduce test/e2e_node_windows/ as a self-contained Windows node e2e
test suite, fully isolated from the Linux-focused test/e2e_node/ package.
All new files are gated with //go:build windows, and the tree includes
a scoped OWNERS file so it lands under an agreed governance model.

In hack/lib/golang.sh, skip building test/e2e_node/e2e_node.test when
KUBE_BUILD_PLATFORMS targets Windows. Windows has a separate e2e_node
test binary which does not currently need to be bundled in an archive.

Document the Windows feature label in test/e2e/feature/feature.go.
2026-05-26 18:04:09 +00:00