@@ -208,6 +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 },
211
212
OwnerReferences : []metav1.OwnerReference {
212
213
{
213
214
APIVersion : "v1" ,
@@ -224,7 +225,8 @@ func TestConfigMapUnpacker(t *testing.T) {
224
225
BackoffLimit : & backoffLimit ,
225
226
Template : corev1.PodTemplateSpec {
226
227
ObjectMeta : metav1.ObjectMeta {
227
- Name : pathHash ,
228
+ Name : pathHash ,
229
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
228
230
},
229
231
Spec : corev1.PodSpec {
230
232
RestartPolicy : corev1 .RestartPolicyNever ,
@@ -369,6 +371,7 @@ func TestConfigMapUnpacker(t *testing.T) {
369
371
ObjectMeta : metav1.ObjectMeta {
370
372
Name : pathHash ,
371
373
Namespace : "ns-a" ,
374
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
372
375
OwnerReferences : []metav1.OwnerReference {
373
376
{
374
377
APIVersion : "v1" ,
@@ -402,6 +405,7 @@ func TestConfigMapUnpacker(t *testing.T) {
402
405
ObjectMeta : metav1.ObjectMeta {
403
406
Name : pathHash ,
404
407
Namespace : "ns-a" ,
408
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
405
409
OwnerReferences : []metav1.OwnerReference {
406
410
{
407
411
APIVersion : "v1" ,
@@ -437,6 +441,7 @@ func TestConfigMapUnpacker(t *testing.T) {
437
441
ObjectMeta : metav1.ObjectMeta {
438
442
Name : digestHash ,
439
443
Namespace : "ns-a" ,
444
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
440
445
OwnerReferences : []metav1.OwnerReference {
441
446
{
442
447
APIVersion : "v1" ,
@@ -452,7 +457,8 @@ func TestConfigMapUnpacker(t *testing.T) {
452
457
BackoffLimit : & backoffLimit ,
453
458
Template : corev1.PodTemplateSpec {
454
459
ObjectMeta : metav1.ObjectMeta {
455
- Name : digestHash ,
460
+ Name : digestHash ,
461
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
456
462
},
457
463
Spec : corev1.PodSpec {
458
464
RestartPolicy : corev1 .RestartPolicyNever ,
@@ -607,6 +613,7 @@ func TestConfigMapUnpacker(t *testing.T) {
607
613
ObjectMeta : metav1.ObjectMeta {
608
614
Name : digestHash ,
609
615
Namespace : "ns-a" ,
616
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
610
617
OwnerReferences : []metav1.OwnerReference {
611
618
{
612
619
APIVersion : "operators.coreos.com/v1alpha1" ,
@@ -705,6 +712,7 @@ func TestConfigMapUnpacker(t *testing.T) {
705
712
ObjectMeta : metav1.ObjectMeta {
706
713
Name : digestHash ,
707
714
Namespace : "ns-a" ,
715
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
708
716
OwnerReferences : []metav1.OwnerReference {
709
717
{
710
718
APIVersion : "v1" ,
@@ -720,7 +728,8 @@ func TestConfigMapUnpacker(t *testing.T) {
720
728
BackoffLimit : & backoffLimit ,
721
729
Template : corev1.PodTemplateSpec {
722
730
ObjectMeta : metav1.ObjectMeta {
723
- Name : digestHash ,
731
+ Name : digestHash ,
732
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
724
733
},
725
734
Spec : corev1.PodSpec {
726
735
RestartPolicy : corev1 .RestartPolicyNever ,
@@ -877,6 +886,7 @@ func TestConfigMapUnpacker(t *testing.T) {
877
886
ObjectMeta : metav1.ObjectMeta {
878
887
Name : digestHash ,
879
888
Namespace : "ns-a" ,
889
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
880
890
OwnerReferences : []metav1.OwnerReference {
881
891
{
882
892
APIVersion : "v1" ,
@@ -910,6 +920,7 @@ func TestConfigMapUnpacker(t *testing.T) {
910
920
ObjectMeta : metav1.ObjectMeta {
911
921
Name : digestHash ,
912
922
Namespace : "ns-a" ,
923
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
913
924
OwnerReferences : []metav1.OwnerReference {
914
925
{
915
926
APIVersion : "v1" ,
@@ -967,6 +978,7 @@ func TestConfigMapUnpacker(t *testing.T) {
967
978
ObjectMeta : metav1.ObjectMeta {
968
979
Name : pathHash ,
969
980
Namespace : "ns-a" ,
981
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
970
982
OwnerReferences : []metav1.OwnerReference {
971
983
{
972
984
APIVersion : "v1" ,
@@ -982,7 +994,8 @@ func TestConfigMapUnpacker(t *testing.T) {
982
994
BackoffLimit : & backoffLimit ,
983
995
Template : corev1.PodTemplateSpec {
984
996
ObjectMeta : metav1.ObjectMeta {
985
- Name : pathHash ,
997
+ Name : pathHash ,
998
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
986
999
},
987
1000
Spec : corev1.PodSpec {
988
1001
RestartPolicy : corev1 .RestartPolicyNever ,
@@ -1124,6 +1137,7 @@ func TestConfigMapUnpacker(t *testing.T) {
1124
1137
ObjectMeta : metav1.ObjectMeta {
1125
1138
Name : pathHash ,
1126
1139
Namespace : "ns-a" ,
1140
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
1127
1141
OwnerReferences : []metav1.OwnerReference {
1128
1142
{
1129
1143
APIVersion : "operators.coreos.com/v1alpha1" ,
@@ -1199,6 +1213,7 @@ func TestConfigMapUnpacker(t *testing.T) {
1199
1213
ObjectMeta : metav1.ObjectMeta {
1200
1214
Name : pathHash ,
1201
1215
Namespace : "ns-a" ,
1216
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
1202
1217
OwnerReferences : []metav1.OwnerReference {
1203
1218
{
1204
1219
APIVersion : "v1" ,
@@ -1214,7 +1229,8 @@ func TestConfigMapUnpacker(t *testing.T) {
1214
1229
BackoffLimit : & backoffLimit ,
1215
1230
Template : corev1.PodTemplateSpec {
1216
1231
ObjectMeta : metav1.ObjectMeta {
1217
- Name : pathHash ,
1232
+ Name : pathHash ,
1233
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
1218
1234
},
1219
1235
Spec : corev1.PodSpec {
1220
1236
RestartPolicy : corev1 .RestartPolicyNever ,
@@ -1368,6 +1384,7 @@ func TestConfigMapUnpacker(t *testing.T) {
1368
1384
ObjectMeta : metav1.ObjectMeta {
1369
1385
Name : pathHash ,
1370
1386
Namespace : "ns-a" ,
1387
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
1371
1388
OwnerReferences : []metav1.OwnerReference {
1372
1389
{
1373
1390
APIVersion : "operators.coreos.com/v1alpha1" ,
@@ -1442,6 +1459,7 @@ func TestConfigMapUnpacker(t *testing.T) {
1442
1459
ObjectMeta : metav1.ObjectMeta {
1443
1460
Name : pathHash ,
1444
1461
Namespace : "ns-a" ,
1462
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
1445
1463
OwnerReferences : []metav1.OwnerReference {
1446
1464
{
1447
1465
APIVersion : "v1" ,
@@ -1457,7 +1475,8 @@ func TestConfigMapUnpacker(t *testing.T) {
1457
1475
BackoffLimit : & backoffLimit ,
1458
1476
Template : corev1.PodTemplateSpec {
1459
1477
ObjectMeta : metav1.ObjectMeta {
1460
- Name : pathHash ,
1478
+ Name : pathHash ,
1479
+ Labels : map [string ]string {install .OLMManagedLabelKey : install .OLMManagedLabelValue },
1461
1480
},
1462
1481
Spec : corev1.PodSpec {
1463
1482
RestartPolicy : corev1 .RestartPolicyNever ,
0 commit comments