mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 20:00:07 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user