Skip to content

Add conversion for v1 PipelineRun#5426

Merged
tekton-robot merged 1 commit intotektoncd:mainfrom
JeromeJu:4987-conversion
Sep 6, 2022
Merged

Add conversion for v1 PipelineRun#5426
tekton-robot merged 1 commit intotektoncd:mainfrom
JeromeJu:4987-conversion

Conversation

@JeromeJu
Copy link
Member

@JeromeJu JeromeJu commented Sep 2, 2022

Changes

This commit adds conversion functions between v1beta1 and v1 PipelineRun.
It implements ConvertTo and ConvertFrom for v1beta1 PipelineRun, and leaves
these functions unimplemented for v1 PipelineRun, since it is the highest known version.
It hasn't handled the deprecated bundle field but has handled the resources deprecation.

part of #4987
/kind misc

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • [n/a] Has Docs included if any changes are user facing
  • Has Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • [n/a] Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • [n/a] Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

@tekton-robot tekton-robot added release-note-none Denotes a PR that doesnt merit a release note. kind/misc Categorizes issue or PR as a miscellaneuous one. labels Sep 2, 2022
@tekton-robot tekton-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Sep 2, 2022
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1/pipelinerun_conversion.go Do not exist 66.7%
pkg/apis/pipeline/v1beta1/pipeline_conversion.go 94.5% 94.6% 0.1
pkg/apis/pipeline/v1beta1/pipelineref_conversion.go Do not exist 100.0%
pkg/apis/pipeline/v1beta1/pipelinerun_conversion.go 66.7% 95.3% 28.6

@lbernick lbernick self-assigned this Sep 5, 2022
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lbernick

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 6, 2022
This commit adds conversion functions between v1beta1 and v1
PipelineRun. It implements ConvertTo and ConvertFrom for v1beta1 PipelineRun, and leaves
these functions unimplemented for v1 PipelineRun, since it is the highest known version.
It hasn't handled the deprecated `bundle` field but has handled the
`resources` deprecation.
@JeromeJu JeromeJu requested review from lbernick and removed request for dlorenc and imjasonh September 6, 2022 15:12
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1/pipelinerun_conversion.go Do not exist 66.7%
pkg/apis/pipeline/v1beta1/pipeline_conversion.go 94.5% 94.6% 0.1
pkg/apis/pipeline/v1beta1/pipelineref_conversion.go Do not exist 100.0%
pkg/apis/pipeline/v1beta1/pipelinerun_conversion.go 66.7% 95.4% 28.8

@JeromeJu
Copy link
Member Author

JeromeJu commented Sep 6, 2022

/retest

@abayer
Copy link
Contributor

abayer commented Sep 6, 2022

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 6, 2022
@tekton-robot tekton-robot merged commit 699c1ad into tektoncd:main Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/misc Categorizes issue or PR as a miscellaneuous one. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants