Merge pull request #130182 from marosset/windows-unit-tests-pkg-kubelet-kuberuntime-fixes

Fixing k8s.io/kubernetes/pkg/kubelet/kuberuntime unit tests on Windows
This commit is contained in:
Kubernetes Prow Robot
2025-10-22 14:14:39 -07:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -246,6 +246,9 @@ func TestToKubeContainerStatus(t *testing.T) {
// TestToKubeContainerStatusWithResources tests the converting the CRI container status to
// the internal type (i.e., toKubeContainerStatus()) for containers that returns Resources.
func TestToKubeContainerStatusWithResources(t *testing.T) {
if goruntime.GOOS == "windows" {
t.Skip("InPlacePodVerticalScaling is not currently supported on Windows.")
}
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.InPlacePodVerticalScaling, true)
tCtx := ktesting.Init(t)

View File

@@ -2318,6 +2318,9 @@ func makeBasePodAndStatusWithInitAndEphemeralContainers() (*v1.Pod, *kubecontain
}
func TestComputePodActionsForPodResize(t *testing.T) {
if goruntime.GOOS == "windows" {
t.Skip("InPlacePodVerticalScaling is currently not supported on Windows")
}
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.InPlacePodVerticalScaling, true)
tCtx := ktesting.Init(t)
_, _, m, err := createTestRuntimeManager(tCtx)