-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate v1beta1 RunResult to Unversioned Package #6514
Conversation
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
c949ed0
to
677eb2e
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
677eb2e
to
91b9aea
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
Could we please help check if it makes sense to move RunResult (previously PipelineResourceResult) to pkg/result instead of the pkg/apis/pipeline/v1beta1/result_types? 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks Jerome, can you please add a bit more detail to the commit message/pr description on the reason for this change?
[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
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
91b9aea
to
081f67c
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
This while this isn't is a breaking schema change, this is a breaking client change since previous code using the v1beta1 fields will break. 😢 Is there any down side to just freezing the fields in place as deprecated in the current package? (we could also move the deprecated types to a separate file in the same package if you're looking to separate out deprecated fields). |
Thanks Billy. I thought for this we were aliasing the old struct with PipelineResourceResult in
And for this since we are going to swap the storage version as this struct is used in pkg/pod/status we would need to either migrate this to v1 or an unversioned package moving forward 😿 Does it make sense that with the aliased |
If it's used in the v1 API, package versioned or not it's still effectively a part of the v1 API. 😥 I'd be careful with how these are referenced across v1.
Makes sense to me! You'd need type aliases for each type/field moved to the new package. Otherwise |
081f67c
to
1db7f87
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
I might have been unclear on the v1 apis perspective. Wanted to say that neither
Updated! Thanks for the pointer as always for making sure the compatibility issues:) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small thing, otherwise lgtm.
This commit migrates the v1beta1 RunResult to the unversioned result package since it is no longer a struct in api used for v1beta1 resource types. The RunResult struct was previously PipelineResourceResult and it has been renamed and moved to an unversioned package because it is no longer used in apis. The old struct PipelineResourceResult and its ResultType is aliased and kept in v1beta1 for backward compatibility.
1db7f87
to
bc4fce9
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
This commit migrates the v1beta1 RunResult to the unversioned result
package since it is no longer a struct in api used for v1beta1 resource types.
The RunResult struct was previously PipelineResourceResult and it has been renamed
and moved to an unversioned package because it is no longer used in apis.
The old struct
PipelineResourceResult
is kept in v1beta1 for backward compatibility.follows up: #6434
fixes: #6197
/kind misc
Changes
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes