Skip to content

Commit

Permalink
Remove status before updating TaskRun spec
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Schwarze <schwarzs@de.ibm.com>
  • Loading branch information
SaschaSchwarze0 committed Sep 30, 2024
1 parent 774fc6c commit 73a8da7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/utils/v1alpha1/taskruns.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (t *TestBuild) UpdateTaskRun(name string, apply func(tr *pipelineapi.TaskRu
}

apply(tr)
tr.Status = pipelineapi.TaskRunStatus{}

tr, err = t.PipelineClientSet.TektonV1().TaskRuns(t.Namespace).Update(t.Context, tr, metav1.UpdateOptions{})
if err == nil {
Expand Down
1 change: 1 addition & 0 deletions test/utils/v1beta1/taskruns.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (t *TestBuild) UpdateTaskRun(name string, apply func(tr *pipelineapi.TaskRu
}

apply(tr)
tr.Status = pipelineapi.TaskRunStatus{}

tr, err = t.PipelineClientSet.TektonV1().TaskRuns(t.Namespace).Update(t.Context, tr, metav1.UpdateOptions{})
if err == nil {
Expand Down

0 comments on commit 73a8da7

Please sign in to comment.