We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbdf890 commit 7a1b2aeCopy full SHA for 7a1b2ae
pkg/kubelet/apis/config/validation/validation_test.go
@@ -17,6 +17,7 @@ limitations under the License.
17
package validation_test
18
19
import (
20
+ goruntime "runtime"
21
"strings"
22
"testing"
23
"time"
@@ -81,7 +82,12 @@ var (
81
82
ContainerLogMaxWorkers: 1,
83
ContainerLogMaxFiles: 5,
84
ContainerLogMonitorInterval: metav1.Duration{Duration: 10 * time.Second},
- SingleProcessOOMKill: ptr.To(!kubeletutil.IsCgroup2UnifiedMode()),
85
+ SingleProcessOOMKill: func() *bool {
86
+ if goruntime.GOOS == "linux" {
87
+ return ptr.To(!kubeletutil.IsCgroup2UnifiedMode())
88
+ }
89
+ return nil
90
+ }(),
91
CrashLoopBackOff: kubeletconfig.CrashLoopBackOffConfig{
92
MaxContainerRestartPeriod: &metav1.Duration{Duration: 3 * time.Second},
93
},
0 commit comments