Skip to content

Commit

Permalink
fix: ensure clustertask annotations are synced to taskrun
Browse files Browse the repository at this point in the history
  • Loading branch information
l-qing committed Feb 15, 2024
1 parent f92ec56 commit a400338
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/reconciler/taskrun/resources/taskref_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ func TestLocalTaskRef(t *testing.T) {
&v1beta1.ClusterTask{
ObjectMeta: metav1.ObjectMeta{
Name: "cluster-task",
Annotations: map[string]string{
"foo": "bar",
},
Labels: map[string]string{
"foo": "bar",
},
},
},
&v1beta1.ClusterTask{
Expand All @@ -247,6 +253,12 @@ func TestLocalTaskRef(t *testing.T) {
},
ObjectMeta: metav1.ObjectMeta{
Name: "cluster-task",
Annotations: map[string]string{
"foo": "bar",
},
Labels: map[string]string{
"foo": "bar",
},
},
},
wantErr: nil,
Expand Down

0 comments on commit a400338

Please sign in to comment.