@@ -308,6 +308,7 @@ func TestConfigMapUnpacker(t *testing.T) {
308
308
},
309
309
SecurityContext : & corev1.SecurityContext {
310
310
AllowPrivilegeEscalation : ptr .To (bool (false )),
311
+ ReadOnlyRootFilesystem : ptr .To (true ),
311
312
Capabilities : & corev1.Capabilities {
312
313
Drop : []corev1.Capability {"ALL" },
313
314
},
@@ -334,6 +335,7 @@ func TestConfigMapUnpacker(t *testing.T) {
334
335
},
335
336
SecurityContext : & corev1.SecurityContext {
336
337
AllowPrivilegeEscalation : ptr .To (bool (false )),
338
+ ReadOnlyRootFilesystem : ptr .To (true ),
337
339
Capabilities : & corev1.Capabilities {
338
340
Drop : []corev1.Capability {"ALL" },
339
341
},
@@ -363,6 +365,7 @@ func TestConfigMapUnpacker(t *testing.T) {
363
365
},
364
366
SecurityContext : & corev1.SecurityContext {
365
367
AllowPrivilegeEscalation : ptr .To (bool (false )),
368
+ ReadOnlyRootFilesystem : ptr .To (true ),
366
369
Capabilities : & corev1.Capabilities {
367
370
Drop : []corev1.Capability {"ALL" },
368
371
},
@@ -524,6 +527,7 @@ func TestConfigMapUnpacker(t *testing.T) {
524
527
},
525
528
SecurityContext : & corev1.SecurityContext {
526
529
AllowPrivilegeEscalation : ptr .To (bool (false )),
530
+ ReadOnlyRootFilesystem : ptr .To (true ),
527
531
Capabilities : & corev1.Capabilities {
528
532
Drop : []corev1.Capability {"ALL" },
529
533
},
@@ -550,6 +554,7 @@ func TestConfigMapUnpacker(t *testing.T) {
550
554
},
551
555
SecurityContext : & corev1.SecurityContext {
552
556
AllowPrivilegeEscalation : ptr .To (bool (false )),
557
+ ReadOnlyRootFilesystem : ptr .To (true ),
553
558
Capabilities : & corev1.Capabilities {
554
559
Drop : []corev1.Capability {"ALL" },
555
560
},
@@ -579,6 +584,7 @@ func TestConfigMapUnpacker(t *testing.T) {
579
584
},
580
585
SecurityContext : & corev1.SecurityContext {
581
586
AllowPrivilegeEscalation : ptr .To (bool (false )),
587
+ ReadOnlyRootFilesystem : ptr .To (true ),
582
588
Capabilities : & corev1.Capabilities {
583
589
Drop : []corev1.Capability {"ALL" },
584
590
},
@@ -780,6 +786,7 @@ func TestConfigMapUnpacker(t *testing.T) {
780
786
},
781
787
SecurityContext : & corev1.SecurityContext {
782
788
AllowPrivilegeEscalation : ptr .To (bool (false )),
789
+ ReadOnlyRootFilesystem : ptr .To (true ),
783
790
Capabilities : & corev1.Capabilities {
784
791
Drop : []corev1.Capability {"ALL" },
785
792
},
@@ -806,6 +813,7 @@ func TestConfigMapUnpacker(t *testing.T) {
806
813
},
807
814
SecurityContext : & corev1.SecurityContext {
808
815
AllowPrivilegeEscalation : ptr .To (bool (false )),
816
+ ReadOnlyRootFilesystem : ptr .To (true ),
809
817
Capabilities : & corev1.Capabilities {
810
818
Drop : []corev1.Capability {"ALL" },
811
819
},
@@ -835,6 +843,7 @@ func TestConfigMapUnpacker(t *testing.T) {
835
843
},
836
844
SecurityContext : & corev1.SecurityContext {
837
845
AllowPrivilegeEscalation : ptr .To (bool (false )),
846
+ ReadOnlyRootFilesystem : ptr .To (true ),
838
847
Capabilities : & corev1.Capabilities {
839
848
Drop : []corev1.Capability {"ALL" },
840
849
},
@@ -1031,6 +1040,7 @@ func TestConfigMapUnpacker(t *testing.T) {
1031
1040
},
1032
1041
SecurityContext : & corev1.SecurityContext {
1033
1042
AllowPrivilegeEscalation : ptr .To (bool (false )),
1043
+ ReadOnlyRootFilesystem : ptr .To (true ),
1034
1044
Capabilities : & corev1.Capabilities {
1035
1045
Drop : []corev1.Capability {"ALL" },
1036
1046
},
@@ -1057,6 +1067,7 @@ func TestConfigMapUnpacker(t *testing.T) {
1057
1067
},
1058
1068
SecurityContext : & corev1.SecurityContext {
1059
1069
AllowPrivilegeEscalation : ptr .To (bool (false )),
1070
+ ReadOnlyRootFilesystem : ptr .To (true ),
1060
1071
Capabilities : & corev1.Capabilities {
1061
1072
Drop : []corev1.Capability {"ALL" },
1062
1073
},
@@ -1086,6 +1097,7 @@ func TestConfigMapUnpacker(t *testing.T) {
1086
1097
},
1087
1098
SecurityContext : & corev1.SecurityContext {
1088
1099
AllowPrivilegeEscalation : ptr .To (bool (false )),
1100
+ ReadOnlyRootFilesystem : ptr .To (true ),
1089
1101
Capabilities : & corev1.Capabilities {
1090
1102
Drop : []corev1.Capability {"ALL" },
1091
1103
},
@@ -1252,6 +1264,7 @@ func TestConfigMapUnpacker(t *testing.T) {
1252
1264
},
1253
1265
SecurityContext : & corev1.SecurityContext {
1254
1266
AllowPrivilegeEscalation : ptr .To (bool (false )),
1267
+ ReadOnlyRootFilesystem : ptr .To (true ),
1255
1268
Capabilities : & corev1.Capabilities {
1256
1269
Drop : []corev1.Capability {"ALL" },
1257
1270
},
@@ -1278,6 +1291,7 @@ func TestConfigMapUnpacker(t *testing.T) {
1278
1291
},
1279
1292
SecurityContext : & corev1.SecurityContext {
1280
1293
AllowPrivilegeEscalation : ptr .To (bool (false )),
1294
+ ReadOnlyRootFilesystem : ptr .To (true ),
1281
1295
Capabilities : & corev1.Capabilities {
1282
1296
Drop : []corev1.Capability {"ALL" },
1283
1297
},
@@ -1307,6 +1321,7 @@ func TestConfigMapUnpacker(t *testing.T) {
1307
1321
},
1308
1322
SecurityContext : & corev1.SecurityContext {
1309
1323
AllowPrivilegeEscalation : ptr .To (bool (false )),
1324
+ ReadOnlyRootFilesystem : ptr .To (true ),
1310
1325
Capabilities : & corev1.Capabilities {
1311
1326
Drop : []corev1.Capability {"ALL" },
1312
1327
},
@@ -1486,6 +1501,7 @@ func TestConfigMapUnpacker(t *testing.T) {
1486
1501
},
1487
1502
SecurityContext : & corev1.SecurityContext {
1488
1503
AllowPrivilegeEscalation : ptr .To (bool (false )),
1504
+ ReadOnlyRootFilesystem : ptr .To (true ),
1489
1505
Capabilities : & corev1.Capabilities {
1490
1506
Drop : []corev1.Capability {"ALL" },
1491
1507
},
@@ -1512,6 +1528,7 @@ func TestConfigMapUnpacker(t *testing.T) {
1512
1528
},
1513
1529
SecurityContext : & corev1.SecurityContext {
1514
1530
AllowPrivilegeEscalation : ptr .To (bool (false )),
1531
+ ReadOnlyRootFilesystem : ptr .To (true ),
1515
1532
Capabilities : & corev1.Capabilities {
1516
1533
Drop : []corev1.Capability {"ALL" },
1517
1534
},
@@ -1541,6 +1558,7 @@ func TestConfigMapUnpacker(t *testing.T) {
1541
1558
},
1542
1559
SecurityContext : & corev1.SecurityContext {
1543
1560
AllowPrivilegeEscalation : ptr .To (bool (false )),
1561
+ ReadOnlyRootFilesystem : ptr .To (true ),
1544
1562
Capabilities : & corev1.Capabilities {
1545
1563
Drop : []corev1.Capability {"ALL" },
1546
1564
},
0 commit comments