mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +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
|
||||
|
||||
import (
|
||||
goruntime "runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
@ -81,7 +82,12 @@ var (
|
||||
ContainerLogMaxWorkers: 1,
|
||||
ContainerLogMaxFiles: 5,
|
||||
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{
|
||||
MaxContainerRestartPeriod: &metav1.Duration{Duration: 3 * time.Second},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user