Add V1 Pipeline Golang structs#5219
Conversation
|
Skipping CI for Draft Pull Request. |
|
We do need to keep our alpha fields around (including matrix); they should just stay behind an alpha feature flag. the v1 TEP is the source of truth for what should be in the v1 api |
1a25116 to
789e247
Compare
|
The following is the coverage report on the affected files.
|
|
The following is the coverage report on the affected files.
|
|
The following is the coverage report on the affected files.
|
|
|
||
| // ValidateEmbeddedStatus checks that the embedded-status feature gate is set to the wantEmbeddedStatus value and, | ||
| // if not, returns an error stating which feature is dependent on the status and what the current status actually is. | ||
| func ValidateEmbeddedStatus(ctx context.Context, featureName, wantEmbeddedStatus string) *apis.FieldError { |
There was a problem hiding this comment.
this file shouldn't be needed for Pipeline (only relevant to PipelineRun)
There was a problem hiding this comment.
It seems that this is used in the call stack for validateMatrix, which calls the following func:
https://github.com/JeromeJu/pipeline/blob/5e7bc86121ed814b7066b57d5686b5338326abcd/pkg/apis/pipeline/v1/pipeline_types.go#L289
There was a problem hiding this comment.
Got it that makes sense! In v1, we will only allow this feature flag to be set to "minimal". I think this is OK to stay, but we should also add a similar validation function for PipelineRun (not in this PR) that prevents a v1 PipelineRun from being created unless the feature flag is set to "minimal".
There was a problem hiding this comment.
Thanks Lee. I've noted this down and will be applying to the PipelineRun change which I'd also like to take after this PR and related work.
#4987
No, these files are code generated by knative, which we need |
|
@JeromeJu: The specified target(s) for
The following commands are available to trigger optional jobs:
Use DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
The following is the coverage report on the affected files.
|
|
The following is the coverage report on the affected files.
|
|
The following is the coverage report on the affected files.
|
|
The following is the coverage report on the affected files.
|
|
The following is the coverage report on the affected files.
|
471bb2a to
6045eb7
Compare
|
The following is the coverage report on the affected files.
|
|
The following is the coverage report on the affected files.
|
|
The following is the coverage report on the affected files.
|
|
The following is the coverage report on the affected files.
|
2286532 to
ac1113e
Compare
|
The following is the coverage report on the affected files.
|
lbernick
left a comment
There was a problem hiding this comment.
Thanks Jerome! could you please:
- update the PR description to specify that the Go field name for
Whenwas changed, not the API - add a commit message body
- double check whether there have been any changes to pkg/apis affecting these files since you opened this PR, and make sure they're incorporated here?
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This commit adds structs and validation for v1 Pipeline, including when expressions, resultRef. This is copied from v1beta1 with the following exceptions: - omitted PipelineResources - omitted Bundle and ClusterTask fields - change PipelineTask `whenExpressions` Go field name from to `When` due to api naming violation
ac1113e to
f8526e5
Compare
|
The following is the coverage report on the affected files.
|
Thanks Lee:) Updated. |
|
/assign |
|
/retest |
Changes
This commit adds structs and validation for v1 Pipeline, including when expressions,
resultRef. This is copied from v1beta1 with the following exceptions:
whenExpressionsGo field name from toWhendue to api naming violation
Part of #4986
/kind misc
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
/kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes