Skip to content

Commit

Permalink
Cleanup outdated v1beta1 reference in pipelinerun reconciler
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeJu authored and tekton-robot committed Dec 6, 2023
1 parent 6a5f0eb commit 66eea3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/reconciler/pipelinerun/resources/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ func ApplyTaskResultsToPipelineResults(
}
variableParts := strings.Split(variable, ".")

if (variableParts[0] != v1beta1.ResultTaskPart && variableParts[0] != v1beta1.ResultFinallyPart) || variableParts[2] != v1beta1.ResultResultPart {
if (variableParts[0] != v1.ResultTaskPart && variableParts[0] != v1.ResultFinallyPart) || variableParts[2] != v1beta1.ResultResultPart {
validPipelineResult = false
invalidPipelineResults = append(invalidPipelineResults, pipelineResult.Name)
continue
Expand Down Expand Up @@ -470,7 +470,7 @@ func ApplyTaskResultsToPipelineResults(
} else {
// if the task is not successful (e.g. skipped or failed) and the results is missing, don't return error
if status, ok := taskstatus[PipelineTaskStatusPrefix+taskName+PipelineTaskStatusSuffix]; ok {
if status != v1beta1.TaskRunReasonSuccessful.String() {
if status != v1.TaskRunReasonSuccessful.String() {
validPipelineResult = false
continue
}
Expand All @@ -494,7 +494,7 @@ func ApplyTaskResultsToPipelineResults(
} else {
// if the task is not successful (e.g. skipped or failed) and the results is missing, don't return error
if status, ok := taskstatus[PipelineTaskStatusPrefix+taskName+PipelineTaskStatusSuffix]; ok {
if status != v1beta1.TaskRunReasonSuccessful.String() {
if status != v1.TaskRunReasonSuccessful.String() {
validPipelineResult = false
continue
}
Expand Down

0 comments on commit 66eea3a

Please sign in to comment.