@@ -406,7 +406,7 @@ func TestPodExtractContent(t *testing.T) {
406
406
ObjectMeta : metav1.ObjectMeta {
407
407
GenerateName : "test-" ,
408
408
Namespace : "testns" ,
409
- Labels : map [string ]string {"olm.pod-spec-hash" : "5ToGGS7RLuy9Fq91z7IjESOJXfurg09nHAxtfK " , "olm.managed" : "true" },
409
+ Labels : map [string ]string {"olm.pod-spec-hash" : "7W3t15wWurp7a9W1VVX392SnNYQu3OLbGDJ0wy " , "olm.managed" : "true" },
410
410
Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
411
411
},
412
412
Spec : corev1.PodSpec {
@@ -419,6 +419,10 @@ func TestPodExtractContent(t *testing.T) {
419
419
Name : "catalog-content" ,
420
420
VolumeSource : corev1.VolumeSource {EmptyDir : & corev1.EmptyDirVolumeSource {}},
421
421
},
422
+ {
423
+ Name : "tmpdir" ,
424
+ VolumeSource : corev1.VolumeSource {EmptyDir : & corev1.EmptyDirVolumeSource {}},
425
+ },
422
426
},
423
427
InitContainers : []corev1.Container {
424
428
{
@@ -497,7 +501,7 @@ func TestPodExtractContent(t *testing.T) {
497
501
},
498
502
ImagePullPolicy : image .InferImagePullPolicy ("image" ),
499
503
TerminationMessagePolicy : "FallbackToLogsOnError" ,
500
- VolumeMounts : []corev1.VolumeMount {{Name : "catalog-content" , MountPath : "/extracted-catalog" }},
504
+ VolumeMounts : []corev1.VolumeMount {{Name : "tmpdir" , MountPath : "/tmp/" }, { Name : " catalog-content" , MountPath : "/extracted-catalog" }},
501
505
},
502
506
},
503
507
NodeSelector : map [string ]string {"kubernetes.io/os" : "linux" },
@@ -733,7 +737,7 @@ func TestPodExtractContent(t *testing.T) {
733
737
ObjectMeta : metav1.ObjectMeta {
734
738
GenerateName : "test-" ,
735
739
Namespace : "testns" ,
736
- Labels : map [string ]string {"olm.pod-spec-hash" : "bhL1lOcUJhtisRddUp8tRQupbIii64C6qz9drn " , "olm.managed" : "true" },
740
+ Labels : map [string ]string {"olm.pod-spec-hash" : "8ed7duDhuISxUmqWPMZfQu9rc02OOJaOeyT6ML " , "olm.managed" : "true" },
737
741
Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
738
742
},
739
743
Spec : corev1.PodSpec {
@@ -746,6 +750,10 @@ func TestPodExtractContent(t *testing.T) {
746
750
Name : "catalog-content" ,
747
751
VolumeSource : corev1.VolumeSource {EmptyDir : & corev1.EmptyDirVolumeSource {}},
748
752
},
753
+ {
754
+ Name : "tmpdir" ,
755
+ VolumeSource : corev1.VolumeSource {EmptyDir : & corev1.EmptyDirVolumeSource {}},
756
+ },
749
757
},
750
758
InitContainers : []corev1.Container {
751
759
{
@@ -830,7 +838,7 @@ func TestPodExtractContent(t *testing.T) {
830
838
ReadOnlyRootFilesystem : ptr .To (true ),
831
839
},
832
840
TerminationMessagePolicy : "FallbackToLogsOnError" ,
833
- VolumeMounts : []corev1.VolumeMount {{Name : "catalog-content" , MountPath : "/extracted-catalog" }},
841
+ VolumeMounts : []corev1.VolumeMount {{Name : "tmpdir" , MountPath : "/tmp/" }, { Name : " catalog-content" , MountPath : "/extracted-catalog" }},
834
842
},
835
843
},
836
844
NodeSelector : map [string ]string {"kubernetes.io/os" : "linux" },
0 commit comments