mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 08:09:58 +00:00
fixing k8s.io/kubernetes/pkg/kubelet/apis/config/validation unit test failures on Windows
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
This commit is contained in:
parent
fbdf8905ea
commit
7a1b2aea74
@ -17,6 +17,7 @@ limitations under the License.
|
|||||||
package validation_test
|
package validation_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
goruntime "runtime"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
@ -81,7 +82,12 @@ var (
|
|||||||
ContainerLogMaxWorkers: 1,
|
ContainerLogMaxWorkers: 1,
|
||||||
ContainerLogMaxFiles: 5,
|
ContainerLogMaxFiles: 5,
|
||||||
ContainerLogMonitorInterval: metav1.Duration{Duration: 10 * time.Second},
|
ContainerLogMonitorInterval: metav1.Duration{Duration: 10 * time.Second},
|
||||||
SingleProcessOOMKill: ptr.To(!kubeletutil.IsCgroup2UnifiedMode()),
|
SingleProcessOOMKill: func() *bool {
|
||||||
|
if goruntime.GOOS == "linux" {
|
||||||
|
return ptr.To(!kubeletutil.IsCgroup2UnifiedMode())
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(),
|
||||||
CrashLoopBackOff: kubeletconfig.CrashLoopBackOffConfig{
|
CrashLoopBackOff: kubeletconfig.CrashLoopBackOffConfig{
|
||||||
MaxContainerRestartPeriod: &metav1.Duration{Duration: 3 * time.Second},
|
MaxContainerRestartPeriod: &metav1.Duration{Duration: 3 * time.Second},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user