@@ -128,6 +128,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
128
128
MemoryThrottlingFactor : utilpointer .Float64 (DefaultMemoryThrottlingFactor ),
129
129
RegisterNode : utilpointer .Bool (true ),
130
130
LocalStorageCapacityIsolation : utilpointer .Bool (true ),
131
+ PodLogsDir : DefaultPodLogsDir ,
131
132
},
132
133
},
133
134
{
@@ -257,6 +258,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
257
258
MemoryThrottlingFactor : utilpointer .Float64 (0 ),
258
259
RegisterNode : utilpointer .Bool (false ),
259
260
LocalStorageCapacityIsolation : utilpointer .Bool (false ),
261
+ PodLogsDir : "" ,
260
262
},
261
263
& v1beta1.KubeletConfiguration {
262
264
EnableServer : utilpointer .Bool (false ),
@@ -357,6 +359,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
357
359
MemoryThrottlingFactor : utilpointer .Float64 (0 ),
358
360
RegisterNode : utilpointer .Bool (false ),
359
361
LocalStorageCapacityIsolation : utilpointer .Bool (false ),
362
+ PodLogsDir : DefaultPodLogsDir ,
360
363
},
361
364
},
362
365
{
@@ -508,6 +511,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
508
511
MemoryThrottlingFactor : utilpointer .Float64 (1 ),
509
512
RegisterNode : utilpointer .Bool (true ),
510
513
LocalStorageCapacityIsolation : utilpointer .Bool (true ),
514
+ PodLogsDir : "/custom/path" ,
511
515
},
512
516
& v1beta1.KubeletConfiguration {
513
517
EnableServer : utilpointer .Bool (true ),
@@ -656,6 +660,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
656
660
MemoryThrottlingFactor : utilpointer .Float64 (1 ),
657
661
RegisterNode : utilpointer .Bool (true ),
658
662
LocalStorageCapacityIsolation : utilpointer .Bool (true ),
663
+ PodLogsDir : "/custom/path" ,
659
664
},
660
665
},
661
666
{
@@ -747,6 +752,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
747
752
MemoryThrottlingFactor : utilpointer .Float64Ptr (DefaultMemoryThrottlingFactor ),
748
753
RegisterNode : utilpointer .Bool (true ),
749
754
LocalStorageCapacityIsolation : utilpointer .Bool (true ),
755
+ PodLogsDir : DefaultPodLogsDir ,
750
756
},
751
757
},
752
758
{
@@ -838,6 +844,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
838
844
MemoryThrottlingFactor : utilpointer .Float64Ptr (DefaultMemoryThrottlingFactor ),
839
845
RegisterNode : utilpointer .Bool (true ),
840
846
LocalStorageCapacityIsolation : utilpointer .Bool (true ),
847
+ PodLogsDir : DefaultPodLogsDir ,
841
848
},
842
849
},
843
850
{
@@ -929,6 +936,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
929
936
MemoryThrottlingFactor : utilpointer .Float64 (DefaultMemoryThrottlingFactor ),
930
937
RegisterNode : utilpointer .Bool (true ),
931
938
LocalStorageCapacityIsolation : utilpointer .Bool (true ),
939
+ PodLogsDir : DefaultPodLogsDir ,
932
940
},
933
941
},
934
942
}
0 commit comments