@@ -268,6 +268,7 @@ func TestReconcile_ExplicitDefaultSA(t *testing.T) {
268
268
name : "success" ,
269
269
taskRun : taskRunSuccess ,
270
270
wantPod : tb .Pod ("test-taskrun-run-success-pod-abcde" , "foo" ,
271
+ tb .PodAnnotation (podconvert .ReleaseAnnotation , podconvert .ReleaseAnnotationValue ),
271
272
tb .PodLabel (taskNameLabelKey , "test-task" ),
272
273
tb .PodLabel (taskRunNameLabelKey , "test-taskrun-run-success" ),
273
274
tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
@@ -302,6 +303,7 @@ func TestReconcile_ExplicitDefaultSA(t *testing.T) {
302
303
name : "serviceaccount" ,
303
304
taskRun : taskRunWithSaSuccess ,
304
305
wantPod : tb .Pod ("test-taskrun-with-sa-run-success-pod-abcde" , "foo" ,
306
+ tb .PodAnnotation (podconvert .ReleaseAnnotation , podconvert .ReleaseAnnotationValue ),
305
307
tb .PodLabel (taskNameLabelKey , "test-with-sa" ),
306
308
tb .PodLabel (taskRunNameLabelKey , "test-taskrun-with-sa-run-success" ),
307
309
tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
@@ -519,6 +521,7 @@ func TestReconcile(t *testing.T) {
519
521
name : "success" ,
520
522
taskRun : taskRunSuccess ,
521
523
wantPod : tb .Pod ("test-taskrun-run-success-pod-abcde" , "foo" ,
524
+ tb .PodAnnotation (podconvert .ReleaseAnnotation , podconvert .ReleaseAnnotationValue ),
522
525
tb .PodLabel (taskNameLabelKey , "test-task" ),
523
526
tb .PodLabel (taskRunNameLabelKey , "test-taskrun-run-success" ),
524
527
tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
@@ -552,6 +555,7 @@ func TestReconcile(t *testing.T) {
552
555
name : "serviceaccount" ,
553
556
taskRun : taskRunWithSaSuccess ,
554
557
wantPod : tb .Pod ("test-taskrun-with-sa-run-success-pod-abcde" , "foo" ,
558
+ tb .PodAnnotation (podconvert .ReleaseAnnotation , podconvert .ReleaseAnnotationValue ),
555
559
tb .PodLabel (taskNameLabelKey , "test-with-sa" ),
556
560
tb .PodLabel (taskRunNameLabelKey , "test-taskrun-with-sa-run-success" ),
557
561
tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
@@ -586,6 +590,7 @@ func TestReconcile(t *testing.T) {
586
590
name : "params" ,
587
591
taskRun : taskRunSubstitution ,
588
592
wantPod : tb .Pod ("test-taskrun-substitution-pod-abcde" , "foo" ,
593
+ tb .PodAnnotation (podconvert .ReleaseAnnotation , podconvert .ReleaseAnnotationValue ),
589
594
tb .PodLabel (taskNameLabelKey , "test-task-with-substitution" ),
590
595
tb .PodLabel (taskRunNameLabelKey , "test-taskrun-substitution" ),
591
596
tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
@@ -657,6 +662,7 @@ func TestReconcile(t *testing.T) {
657
662
name : "taskrun-with-taskspec" ,
658
663
taskRun : taskRunWithTaskSpec ,
659
664
wantPod : tb .Pod ("test-taskrun-with-taskspec-pod-abcde" , "foo" ,
665
+ tb .PodAnnotation (podconvert .ReleaseAnnotation , podconvert .ReleaseAnnotationValue ),
660
666
tb .PodLabel (taskRunNameLabelKey , "test-taskrun-with-taskspec" ),
661
667
tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
662
668
tb .PodOwnerReference ("TaskRun" , "test-taskrun-with-taskspec" ,
@@ -706,6 +712,7 @@ func TestReconcile(t *testing.T) {
706
712
name : "success-with-cluster-task" ,
707
713
taskRun : taskRunWithClusterTask ,
708
714
wantPod : tb .Pod ("test-taskrun-with-cluster-task-pod-abcde" , "foo" ,
715
+ tb .PodAnnotation (podconvert .ReleaseAnnotation , podconvert .ReleaseAnnotationValue ),
709
716
tb .PodLabel (taskNameLabelKey , "test-cluster-task" ),
710
717
tb .PodLabel (taskRunNameLabelKey , "test-taskrun-with-cluster-task" ),
711
718
tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
@@ -739,6 +746,7 @@ func TestReconcile(t *testing.T) {
739
746
name : "taskrun-with-resource-spec-task-spec" ,
740
747
taskRun : taskRunWithResourceSpecAndTaskSpec ,
741
748
wantPod : tb .Pod ("test-taskrun-with-resource-spec-pod-abcde" , "foo" ,
749
+ tb .PodAnnotation (podconvert .ReleaseAnnotation , podconvert .ReleaseAnnotationValue ),
742
750
tb .PodLabel (taskRunNameLabelKey , "test-taskrun-with-resource-spec" ),
743
751
tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
744
752
tb .PodOwnerReference ("TaskRun" , "test-taskrun-with-resource-spec" ,
@@ -786,6 +794,7 @@ func TestReconcile(t *testing.T) {
786
794
name : "taskrun-with-pod" ,
787
795
taskRun : taskRunWithPod ,
788
796
wantPod : tb .Pod ("test-taskrun-with-pod-pod-abcde" , "foo" ,
797
+ tb .PodAnnotation (podconvert .ReleaseAnnotation , podconvert .ReleaseAnnotationValue ),
789
798
tb .PodLabel (taskNameLabelKey , "test-task" ),
790
799
tb .PodLabel (taskRunNameLabelKey , "test-taskrun-with-pod" ),
791
800
tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
0 commit comments