@@ -506,7 +506,7 @@ func TestPodExtractContent(t *testing.T) {
506506 ObjectMeta : metav1.ObjectMeta {
507507 GenerateName : "test-" ,
508508 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" },
510510 Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
511511 },
512512 Spec : corev1.PodSpec {
@@ -553,7 +553,7 @@ func TestPodExtractContent(t *testing.T) {
553553 SecurityContext : & corev1.SecurityContext {
554554 Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
555555 AllowPrivilegeEscalation : ptr .To (false ),
556- ReadOnlyRootFilesystem : ptr .To (false ),
556+ ReadOnlyRootFilesystem : ptr .To (true ),
557557 },
558558 TerminationMessagePolicy : "FallbackToLogsOnError" ,
559559 },
@@ -589,7 +589,7 @@ func TestPodExtractContent(t *testing.T) {
589589 ObjectMeta : metav1.ObjectMeta {
590590 GenerateName : "test-" ,
591591 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" },
593593 Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
594594 },
595595 Spec : corev1.PodSpec {
@@ -612,6 +612,7 @@ func TestPodExtractContent(t *testing.T) {
612612 SecurityContext : & corev1.SecurityContext {
613613 Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
614614 AllowPrivilegeEscalation : ptr .To (false ),
615+ ReadOnlyRootFilesystem : ptr .To (true ),
615616 },
616617 VolumeMounts : []corev1.VolumeMount {{Name : "utilities" , MountPath : "/utilities" }},
617618 TerminationMessagePolicy : "FallbackToLogsOnError" ,
@@ -630,6 +631,7 @@ func TestPodExtractContent(t *testing.T) {
630631 SecurityContext : & corev1.SecurityContext {
631632 Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
632633 AllowPrivilegeEscalation : ptr .To (false ),
634+ ReadOnlyRootFilesystem : ptr .To (true ),
633635 },
634636 VolumeMounts : []corev1.VolumeMount {
635637 {Name : "utilities" , MountPath : "/utilities" },
@@ -683,7 +685,7 @@ func TestPodExtractContent(t *testing.T) {
683685 SecurityContext : & corev1.SecurityContext {
684686 Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
685687 AllowPrivilegeEscalation : ptr .To (false ),
686- ReadOnlyRootFilesystem : ptr .To (false ),
688+ ReadOnlyRootFilesystem : ptr .To (true ),
687689 },
688690 TerminationMessagePolicy : "FallbackToLogsOnError" ,
689691 VolumeMounts : []corev1.VolumeMount {{Name : "catalog-content" , MountPath : "/extracted-catalog" }},
@@ -719,7 +721,7 @@ func TestPodExtractContent(t *testing.T) {
719721 ObjectMeta : metav1.ObjectMeta {
720722 GenerateName : "test-" ,
721723 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" },
723725 Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
724726 },
725727 Spec : corev1.PodSpec {
@@ -742,6 +744,7 @@ func TestPodExtractContent(t *testing.T) {
742744 SecurityContext : & corev1.SecurityContext {
743745 Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
744746 AllowPrivilegeEscalation : ptr .To (false ),
747+ ReadOnlyRootFilesystem : ptr .To (true ),
745748 },
746749 VolumeMounts : []corev1.VolumeMount {{Name : "utilities" , MountPath : "/utilities" }},
747750 TerminationMessagePolicy : "FallbackToLogsOnError" ,
@@ -758,6 +761,7 @@ func TestPodExtractContent(t *testing.T) {
758761 SecurityContext : & corev1.SecurityContext {
759762 Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
760763 AllowPrivilegeEscalation : ptr .To (false ),
764+ ReadOnlyRootFilesystem : ptr .To (true ),
761765 },
762766 VolumeMounts : []corev1.VolumeMount {
763767 {Name : "utilities" , MountPath : "/utilities" },
@@ -811,7 +815,7 @@ func TestPodExtractContent(t *testing.T) {
811815 SecurityContext : & corev1.SecurityContext {
812816 Capabilities : & corev1.Capabilities {Drop : []corev1.Capability {"ALL" }},
813817 AllowPrivilegeEscalation : ptr .To (false ),
814- ReadOnlyRootFilesystem : ptr .To (false ),
818+ ReadOnlyRootFilesystem : ptr .To (true ),
815819 },
816820 TerminationMessagePolicy : "FallbackToLogsOnError" ,
817821 VolumeMounts : []corev1.VolumeMount {{Name : "catalog-content" , MountPath : "/extracted-catalog" }},
0 commit comments