Add V1 TaskRun Golang structs
Changes
This commit adds structs and validation for v1 TaskRun, including pod, resultRef. This is copied from v1beta1 with the following exceptions:
- omitted TaskRunResources
- This includes the
TaskRunInputsandTaskRunOutputsand respective test
- This includes the
TODO:
- [ ] Sync with #5143
Part of #4985 /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
- [x] Has Tests included if any functionality added or changed
- [x] Follows the commit message standard
- [x] Meets the Tekton contributor standards (including functionality, content, code)
- [x] 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 - [x] 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
Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all
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/pod.go | Do not exist | 0.0% | |
| pkg/apis/pipeline/v1/taskrun_defaults.go | Do not exist | 0.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 0.0% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
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/pod.go | Do not exist | 0.0% | |
| pkg/apis/pipeline/v1/taskrun_defaults.go | Do not exist | 0.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 0.0% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
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/pod.go | Do not exist | 0.0% | |
| pkg/apis/pipeline/v1/taskrun_defaults.go | Do not exist | 0.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 0.0% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
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/pod.go | Do not exist | 75.0% | |
| pkg/apis/pipeline/v1/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 100.0% |
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/pod.go | Do not exist | 75.0% | |
| pkg/apis/pipeline/v1/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 100.0% |
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/pod.go | Do not exist | 75.0% | |
| pkg/apis/pipeline/v1/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
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/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
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/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
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/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
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/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
[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
- ~~OWNERS~~ [lbernick]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
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/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
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/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
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/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
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/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
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/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
As this is a large PR and the changes are copied from v1beta1, put this PR for visualization for easier comparison.
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/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
This LGTM. Can you squash up the commits?
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/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
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/taskrun_defaults.go | Do not exist | 100.0% | |
| pkg/apis/pipeline/v1/taskrun_types.go | Do not exist | 77.2% | |
| pkg/apis/pipeline/v1/taskrun_validation.go | Do not exist | 0.0% |
Thanks @dibyom, squashed and retested.
/lgtm