-
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
V1: Add conversion for TaskRunSpec.TaskRef.Bundle #5381
Conversation
The following is the coverage report on the affected files.
|
/kind misc |
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.
Instead of serializing/deserializing to metadata, we should instead convert this to a remote reference w/ the bundle resolver, since the bundle resolver will be packaged with pipelines. The reason is that we still need to support v1beta1 for 9 months, but we'd like to swap our stored version to v1 as soon as we can. When we swap the stored version to v1 and use it in the reconciler, it's way easier to use the existing functionality for remote resolution than it is to deserialize the bundle reference from annotations.
I'm not sure though if there's a good way to parse the |
I am not sure that I agree with this too much or not 😅, mainly because we don't have any precedent yet on this (we never really converted to new features before). But it's probably fine.
I am not sure I understand this question, it should be straightforward. Today we have the following…
… that translates to …
The |
thanks! I didn't realize the taskName was the same for both-- this sounds good. |
Thanks @lbernick and @vdemeester for the guidance and the discussion. I would like to confirm, so we don't need to parse or validate the image/bundle name essentially. Instead, will it be sufficient converting to the following configurations? |
Yes, the |
d3e040a
to
6769f29
Compare
6769f29
to
0034023
Compare
0034023
to
ee1d163
Compare
ee1d163
to
29cbdb5
Compare
a74570f
to
5dc43cf
Compare
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!
[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 |
This commit adds support for TaskRef.Bundle when converting between v1beta1 and v1 versions of TaskRef. This allows us to release v1 TaskRun and PipelineRun in a backwards compatible way by ensuring that v1beta1 TaskRuns and PipelineRuns with Bundle converted into ResolverRef and params on the v1 TaskRuns and PipelineRuns on conversion.
5dc43cf
to
855e66b
Compare
/lgtm |
This commit adds support for TaskRef.Bundle when converting between
v1beta1 and v1 versions of TaskRef. This allows us to release v1 TaskRun
in a backwards compatible way by ensuring that v1beta1 TaskRuns and
PipelineRuns with Bundle converted to v1 TaskRuns conversion.
part of #4985
/kind misc
Changes
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