@@ -34,7 +34,6 @@ import (
34
34
)
35
35
36
36
func TestSetDefaultsKubeletConfiguration (t * testing.T ) {
37
-
38
37
tests := []struct {
39
38
name string
40
39
config * v1beta1.KubeletConfiguration
@@ -130,6 +129,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
130
129
RegisterNode : ptr .To (true ),
131
130
LocalStorageCapacityIsolation : ptr .To (true ),
132
131
PodLogsDir : DefaultPodLogsDir ,
132
+ SingleProcessOOMKill : nil ,
133
133
},
134
134
},
135
135
{
@@ -261,6 +261,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
261
261
RegisterNode : ptr .To (false ),
262
262
LocalStorageCapacityIsolation : ptr .To (false ),
263
263
PodLogsDir : "" ,
264
+ SingleProcessOOMKill : ptr .To (false ),
264
265
},
265
266
& v1beta1.KubeletConfiguration {
266
267
EnableServer : ptr .To (false ),
@@ -363,6 +364,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
363
364
RegisterNode : ptr .To (false ),
364
365
LocalStorageCapacityIsolation : ptr .To (false ),
365
366
PodLogsDir : DefaultPodLogsDir ,
367
+ SingleProcessOOMKill : ptr .To (false ),
366
368
},
367
369
},
368
370
{
@@ -516,6 +518,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
516
518
RegisterNode : ptr .To (true ),
517
519
LocalStorageCapacityIsolation : ptr .To (true ),
518
520
PodLogsDir : "/custom/path" ,
521
+ SingleProcessOOMKill : ptr .To (true ),
519
522
},
520
523
& v1beta1.KubeletConfiguration {
521
524
EnableServer : ptr .To (true ),
@@ -666,6 +669,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
666
669
RegisterNode : ptr .To (true ),
667
670
LocalStorageCapacityIsolation : ptr .To (true ),
668
671
PodLogsDir : "/custom/path" ,
672
+ SingleProcessOOMKill : ptr .To (true ),
669
673
},
670
674
},
671
675
{
@@ -759,6 +763,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
759
763
RegisterNode : ptr .To (true ),
760
764
LocalStorageCapacityIsolation : ptr .To (true ),
761
765
PodLogsDir : DefaultPodLogsDir ,
766
+ SingleProcessOOMKill : nil ,
762
767
},
763
768
},
764
769
{
@@ -852,6 +857,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
852
857
RegisterNode : ptr .To (true ),
853
858
LocalStorageCapacityIsolation : ptr .To (true ),
854
859
PodLogsDir : DefaultPodLogsDir ,
860
+ SingleProcessOOMKill : nil ,
855
861
},
856
862
},
857
863
{
@@ -945,6 +951,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
945
951
RegisterNode : ptr .To (true ),
946
952
LocalStorageCapacityIsolation : ptr .To (true ),
947
953
PodLogsDir : DefaultPodLogsDir ,
954
+ SingleProcessOOMKill : nil ,
948
955
},
949
956
},
950
957
}
0 commit comments