@@ -208,7 +208,7 @@ func TestConfigMapUnpacker(t *testing.T) {
208208 ObjectMeta : metav1.ObjectMeta {
209209 Name : pathHash ,
210210 Namespace : "ns-a" ,
211- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , bundleUnpackRefLabel : pathHash },
211+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , BundleUnpackRefLabel : pathHash },
212212 OwnerReferences : []metav1.OwnerReference {
213213 {
214214 APIVersion : "v1" ,
@@ -225,8 +225,11 @@ func TestConfigMapUnpacker(t *testing.T) {
225225 BackoffLimit : & backoffLimit ,
226226 Template : corev1.PodTemplateSpec {
227227 ObjectMeta : metav1.ObjectMeta {
228- Name : pathHash ,
229- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
228+ Name : pathHash ,
229+ Labels : map [string ]string {
230+ install .OLMManagedLabelKey : install .OLMManagedLabelValue ,
231+ BundleUnpackRefLabel : pathHash ,
232+ },
230233 },
231234 Spec : corev1.PodSpec {
232235 RestartPolicy : corev1 .RestartPolicyNever ,
@@ -444,7 +447,7 @@ func TestConfigMapUnpacker(t *testing.T) {
444447 ObjectMeta : metav1.ObjectMeta {
445448 Name : digestHash ,
446449 Namespace : "ns-a" ,
447- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , bundleUnpackRefLabel : digestHash },
450+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , BundleUnpackRefLabel : digestHash },
448451 OwnerReferences : []metav1.OwnerReference {
449452 {
450453 APIVersion : "v1" ,
@@ -460,8 +463,11 @@ func TestConfigMapUnpacker(t *testing.T) {
460463 BackoffLimit : & backoffLimit ,
461464 Template : corev1.PodTemplateSpec {
462465 ObjectMeta : metav1.ObjectMeta {
463- Name : digestHash ,
464- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
466+ Name : digestHash ,
467+ Labels : map [string ]string {
468+ install .OLMManagedLabelKey : install .OLMManagedLabelValue ,
469+ BundleUnpackRefLabel : digestHash ,
470+ },
465471 },
466472 Spec : corev1.PodSpec {
467473 RestartPolicy : corev1 .RestartPolicyNever ,
@@ -718,7 +724,7 @@ func TestConfigMapUnpacker(t *testing.T) {
718724 ObjectMeta : metav1.ObjectMeta {
719725 Name : digestHash ,
720726 Namespace : "ns-a" ,
721- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , bundleUnpackRefLabel : digestHash },
727+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , BundleUnpackRefLabel : digestHash },
722728 OwnerReferences : []metav1.OwnerReference {
723729 {
724730 APIVersion : "v1" ,
@@ -734,8 +740,11 @@ func TestConfigMapUnpacker(t *testing.T) {
734740 BackoffLimit : & backoffLimit ,
735741 Template : corev1.PodTemplateSpec {
736742 ObjectMeta : metav1.ObjectMeta {
737- Name : digestHash ,
738- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
743+ Name : digestHash ,
744+ Labels : map [string ]string {
745+ install .OLMManagedLabelKey : install .OLMManagedLabelValue ,
746+ BundleUnpackRefLabel : digestHash ,
747+ },
739748 },
740749 Spec : corev1.PodSpec {
741750 RestartPolicy : corev1 .RestartPolicyNever ,
@@ -987,7 +996,7 @@ func TestConfigMapUnpacker(t *testing.T) {
987996 ObjectMeta : metav1.ObjectMeta {
988997 Name : pathHash ,
989998 Namespace : "ns-a" ,
990- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , bundleUnpackRefLabel : pathHash },
999+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , BundleUnpackRefLabel : pathHash },
9911000 OwnerReferences : []metav1.OwnerReference {
9921001 {
9931002 APIVersion : "v1" ,
@@ -1003,8 +1012,11 @@ func TestConfigMapUnpacker(t *testing.T) {
10031012 BackoffLimit : & backoffLimit ,
10041013 Template : corev1.PodTemplateSpec {
10051014 ObjectMeta : metav1.ObjectMeta {
1006- Name : pathHash ,
1007- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
1015+ Name : pathHash ,
1016+ Labels : map [string ]string {
1017+ install .OLMManagedLabelKey : install .OLMManagedLabelValue ,
1018+ BundleUnpackRefLabel : pathHash ,
1019+ },
10081020 },
10091021 Spec : corev1.PodSpec {
10101022 RestartPolicy : corev1 .RestartPolicyNever ,
@@ -1242,8 +1254,11 @@ func TestConfigMapUnpacker(t *testing.T) {
12421254 BackoffLimit : & backoffLimit ,
12431255 Template : corev1.PodTemplateSpec {
12441256 ObjectMeta : metav1.ObjectMeta {
1245- Name : pathHash ,
1246- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
1257+ Name : pathHash ,
1258+ Labels : map [string ]string {
1259+ install .OLMManagedLabelKey : install .OLMManagedLabelValue ,
1260+ BundleUnpackRefLabel : pathHash ,
1261+ },
12471262 },
12481263 Spec : corev1.PodSpec {
12491264 RestartPolicy : corev1 .RestartPolicyNever ,
@@ -1494,8 +1509,11 @@ func TestConfigMapUnpacker(t *testing.T) {
14941509 BackoffLimit : & backoffLimit ,
14951510 Template : corev1.PodTemplateSpec {
14961511 ObjectMeta : metav1.ObjectMeta {
1497- Name : pathHash ,
1498- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
1512+ Name : pathHash ,
1513+ Labels : map [string ]string {
1514+ install .OLMManagedLabelKey : install .OLMManagedLabelValue ,
1515+ BundleUnpackRefLabel : pathHash ,
1516+ },
14991517 },
15001518 Spec : corev1.PodSpec {
15011519 RestartPolicy : corev1 .RestartPolicyNever ,
@@ -1990,7 +2008,7 @@ func TestSortUnpackJobs(t *testing.T) {
19902008 return & batchv1.Job {
19912009 ObjectMeta : metav1.ObjectMeta {
19922010 Name : name ,
1993- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , bundleUnpackRefLabel : "test" },
2011+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , BundleUnpackRefLabel : "test" },
19942012 },
19952013 Status : batchv1.JobStatus {
19962014 Conditions : conditions ,
@@ -2000,7 +2018,7 @@ func TestSortUnpackJobs(t *testing.T) {
20002018 nilConditionJob := & batchv1.Job {
20012019 ObjectMeta : metav1.ObjectMeta {
20022020 Name : "nc" ,
2003- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , bundleUnpackRefLabel : "test" },
2021+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , BundleUnpackRefLabel : "test" },
20042022 },
20052023 Status : batchv1.JobStatus {
20062024 Conditions : nil ,
0 commit comments