@@ -506,7 +506,7 @@ func TestPodExtractContent(t *testing.T) {
506
506
ObjectMeta : metav1.ObjectMeta {
507
507
GenerateName : "test-" ,
508
508
Namespace : "testns" ,
509
- Labels : map [string ]string {"olm.pod-spec-hash" : "3sDLk8MMNptrqUfdnruY2gUi1g8O4wpMWC6Q52 " , "olm.managed" : "true" },
509
+ Labels : map [string ]string {"olm.pod-spec-hash" : "2ZOz2dIc08OnA6K8YLykbH5TuFNbwrpktFugq3 " , "olm.managed" : "true" },
510
510
Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
511
511
},
512
512
Spec : corev1.PodSpec {
@@ -553,7 +553,7 @@ func TestPodExtractContent(t *testing.T) {
553
553
SecurityContext : & corev1.SecurityContext {
554
554
Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
555
555
AllowPrivilegeEscalation : ptr .To (false ),
556
- ReadOnlyRootFilesystem : ptr .To (false ),
556
+ ReadOnlyRootFilesystem : ptr .To (true ),
557
557
},
558
558
TerminationMessagePolicy : "FallbackToLogsOnError" ,
559
559
},
@@ -589,7 +589,7 @@ func TestPodExtractContent(t *testing.T) {
589
589
ObjectMeta : metav1.ObjectMeta {
590
590
GenerateName : "test-" ,
591
591
Namespace : "testns" ,
592
- Labels : map [string ]string {"olm.pod-spec-hash" : "1X4YqbfXuc9SB9ztW03WNOyanr9aIhKfijeBHH " , "olm.managed" : "true" },
592
+ Labels : map [string ]string {"olm.pod-spec-hash" : "aeGb70iG9mui6QaqbaM6RAJG5fNVrXUjiEzEb7 " , "olm.managed" : "true" },
593
593
Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
594
594
},
595
595
Spec : corev1.PodSpec {
@@ -612,6 +612,7 @@ func TestPodExtractContent(t *testing.T) {
612
612
SecurityContext : & corev1.SecurityContext {
613
613
Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
614
614
AllowPrivilegeEscalation : ptr .To (false ),
615
+ ReadOnlyRootFilesystem : ptr .To (true ),
615
616
},
616
617
VolumeMounts : []corev1.VolumeMount {{Name : "utilities" , MountPath : "/utilities" }},
617
618
TerminationMessagePolicy : "FallbackToLogsOnError" ,
@@ -630,6 +631,7 @@ func TestPodExtractContent(t *testing.T) {
630
631
SecurityContext : & corev1.SecurityContext {
631
632
Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
632
633
AllowPrivilegeEscalation : ptr .To (false ),
634
+ ReadOnlyRootFilesystem : ptr .To (true ),
633
635
},
634
636
VolumeMounts : []corev1.VolumeMount {
635
637
{Name : "utilities" , MountPath : "/utilities" },
@@ -683,7 +685,7 @@ func TestPodExtractContent(t *testing.T) {
683
685
SecurityContext : & corev1.SecurityContext {
684
686
Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
685
687
AllowPrivilegeEscalation : ptr .To (false ),
686
- ReadOnlyRootFilesystem : ptr .To (false ),
688
+ ReadOnlyRootFilesystem : ptr .To (true ),
687
689
},
688
690
TerminationMessagePolicy : "FallbackToLogsOnError" ,
689
691
VolumeMounts : []corev1.VolumeMount {{Name : "catalog-content" , MountPath : "/extracted-catalog" }},
@@ -719,7 +721,7 @@ func TestPodExtractContent(t *testing.T) {
719
721
ObjectMeta : metav1.ObjectMeta {
720
722
GenerateName : "test-" ,
721
723
Namespace : "testns" ,
722
- Labels : map [string ]string {"olm.pod-spec-hash" : "cO4moUo3vz6jZlcoBcxY4BB8o8a4E7m5GXCzI " , "olm.managed" : "true" },
724
+ Labels : map [string ]string {"olm.pod-spec-hash" : "bhL1lOcUJhtisRddUp8tRQupbIii64C6qz9drn " , "olm.managed" : "true" },
723
725
Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
724
726
},
725
727
Spec : corev1.PodSpec {
@@ -742,6 +744,7 @@ func TestPodExtractContent(t *testing.T) {
742
744
SecurityContext : & corev1.SecurityContext {
743
745
Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
744
746
AllowPrivilegeEscalation : ptr .To (false ),
747
+ ReadOnlyRootFilesystem : ptr .To (true ),
745
748
},
746
749
VolumeMounts : []corev1.VolumeMount {{Name : "utilities" , MountPath : "/utilities" }},
747
750
TerminationMessagePolicy : "FallbackToLogsOnError" ,
@@ -758,6 +761,7 @@ func TestPodExtractContent(t *testing.T) {
758
761
SecurityContext : & corev1.SecurityContext {
759
762
Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
760
763
AllowPrivilegeEscalation : ptr .To (false ),
764
+ ReadOnlyRootFilesystem : ptr .To (true ),
761
765
},
762
766
VolumeMounts : []corev1.VolumeMount {
763
767
{Name : "utilities" , MountPath : "/utilities" },
@@ -811,7 +815,7 @@ func TestPodExtractContent(t *testing.T) {
811
815
SecurityContext : & corev1.SecurityContext {
812
816
Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
813
817
AllowPrivilegeEscalation : ptr .To (false ),
814
- ReadOnlyRootFilesystem : ptr .To (false ),
818
+ ReadOnlyRootFilesystem : ptr .To (true ),
815
819
},
816
820
TerminationMessagePolicy : "FallbackToLogsOnError" ,
817
821
VolumeMounts : []corev1.VolumeMount {{Name : "catalog-content" , MountPath : "/extracted-catalog" }},
0 commit comments