@@ -208,7 +208,7 @@ func TestConfigMapUnpacker(t *testing.T) {
208
208
ObjectMeta : metav1.ObjectMeta {
209
209
Name : pathHash ,
210
210
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 },
212
212
OwnerReferences : []metav1.OwnerReference {
213
213
{
214
214
APIVersion : "v1" ,
@@ -225,8 +225,11 @@ func TestConfigMapUnpacker(t *testing.T) {
225
225
BackoffLimit : & backoffLimit ,
226
226
Template : corev1.PodTemplateSpec {
227
227
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
+ },
230
233
},
231
234
Spec : corev1.PodSpec {
232
235
RestartPolicy : corev1 .RestartPolicyNever ,
@@ -444,7 +447,7 @@ func TestConfigMapUnpacker(t *testing.T) {
444
447
ObjectMeta : metav1.ObjectMeta {
445
448
Name : digestHash ,
446
449
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 },
448
451
OwnerReferences : []metav1.OwnerReference {
449
452
{
450
453
APIVersion : "v1" ,
@@ -460,8 +463,11 @@ func TestConfigMapUnpacker(t *testing.T) {
460
463
BackoffLimit : & backoffLimit ,
461
464
Template : corev1.PodTemplateSpec {
462
465
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
+ },
465
471
},
466
472
Spec : corev1.PodSpec {
467
473
RestartPolicy : corev1 .RestartPolicyNever ,
@@ -718,7 +724,7 @@ func TestConfigMapUnpacker(t *testing.T) {
718
724
ObjectMeta : metav1.ObjectMeta {
719
725
Name : digestHash ,
720
726
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 },
722
728
OwnerReferences : []metav1.OwnerReference {
723
729
{
724
730
APIVersion : "v1" ,
@@ -734,8 +740,11 @@ func TestConfigMapUnpacker(t *testing.T) {
734
740
BackoffLimit : & backoffLimit ,
735
741
Template : corev1.PodTemplateSpec {
736
742
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
+ },
739
748
},
740
749
Spec : corev1.PodSpec {
741
750
RestartPolicy : corev1 .RestartPolicyNever ,
@@ -987,7 +996,7 @@ func TestConfigMapUnpacker(t *testing.T) {
987
996
ObjectMeta : metav1.ObjectMeta {
988
997
Name : pathHash ,
989
998
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 },
991
1000
OwnerReferences : []metav1.OwnerReference {
992
1001
{
993
1002
APIVersion : "v1" ,
@@ -1003,8 +1012,11 @@ func TestConfigMapUnpacker(t *testing.T) {
1003
1012
BackoffLimit : & backoffLimit ,
1004
1013
Template : corev1.PodTemplateSpec {
1005
1014
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
+ },
1008
1020
},
1009
1021
Spec : corev1.PodSpec {
1010
1022
RestartPolicy : corev1 .RestartPolicyNever ,
@@ -1242,8 +1254,11 @@ func TestConfigMapUnpacker(t *testing.T) {
1242
1254
BackoffLimit : & backoffLimit ,
1243
1255
Template : corev1.PodTemplateSpec {
1244
1256
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
+ },
1247
1262
},
1248
1263
Spec : corev1.PodSpec {
1249
1264
RestartPolicy : corev1 .RestartPolicyNever ,
@@ -1494,8 +1509,11 @@ func TestConfigMapUnpacker(t *testing.T) {
1494
1509
BackoffLimit : & backoffLimit ,
1495
1510
Template : corev1.PodTemplateSpec {
1496
1511
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
+ },
1499
1517
},
1500
1518
Spec : corev1.PodSpec {
1501
1519
RestartPolicy : corev1 .RestartPolicyNever ,
@@ -1990,7 +2008,7 @@ func TestSortUnpackJobs(t *testing.T) {
1990
2008
return & batchv1.Job {
1991
2009
ObjectMeta : metav1.ObjectMeta {
1992
2010
Name : name ,
1993
- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , bundleUnpackRefLabel : "test" },
2011
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , BundleUnpackRefLabel : "test" },
1994
2012
},
1995
2013
Status : batchv1.JobStatus {
1996
2014
Conditions : conditions ,
@@ -2000,7 +2018,7 @@ func TestSortUnpackJobs(t *testing.T) {
2000
2018
nilConditionJob := & batchv1.Job {
2001
2019
ObjectMeta : metav1.ObjectMeta {
2002
2020
Name : "nc" ,
2003
- Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , bundleUnpackRefLabel : "test" },
2021
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue , BundleUnpackRefLabel : "test" },
2004
2022
},
2005
2023
Status : batchv1.JobStatus {
2006
2024
Conditions : nil ,
0 commit comments