Skip to content

Commit

Permalink
tekton bump changes
Browse files Browse the repository at this point in the history
- Update taskruns wrapper
  • Loading branch information
adambkaplan committed Nov 24, 2020
1 parent 8f54809 commit 7febc70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration/utils/taskruns.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package utils

import (
"context"
"errors"
"fmt"

Expand All @@ -23,7 +24,7 @@ func (t *TestBuild) GetTaskRunFromBuildRun(buildRunName string) (*v1beta1.TaskRu

trInterface := t.PipelineClientSet.TektonV1beta1().TaskRuns(t.Namespace)

trList, err := trInterface.List(metav1.ListOptions{
trList, err := trInterface.List(context.TODO(), metav1.ListOptions{
LabelSelector: taskRunLabelSelector,
})
if err != nil {
Expand All @@ -41,7 +42,7 @@ func (t *TestBuild) GetTaskRunFromBuildRun(buildRunName string) (*v1beta1.TaskRu
func (t *TestBuild) UpdateTaskRun(tr *v1beta1.TaskRun) (*v1beta1.TaskRun, error) {
trInterface := t.PipelineClientSet.TektonV1beta1().TaskRuns(t.Namespace)

return trInterface.Update(tr)
return trInterface.Update(context.TODO(), tr, metav1.UpdateOptions{})
}

// GetTRReason returns the Reason of the Succeeded condition
Expand Down

0 comments on commit 7febc70

Please sign in to comment.