-
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
Serialize and deserialize Finally in PipelineRuns too #3816
Conversation
The following is the coverage report on the affected files.
|
In commit 3ea5981 we added a way for Pipeline.Spec.Finally to be serialized into alpha Pipelines when downgrading from v1beta1. This was done to fix an error occurring during conversion and to avoid potential data loss. This commit adds a similar feature to PipelineRuns. Specifically, if a PipelineRun nests a PipelineSpec with Finally then that too needs to be serialized and stored on the alpha version to be deserialized later.
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.
The changes looks fine but I am trying to understand the usage here. Since the specifications are inlined, it can not be used by any other run
. These changes discloses the finally
section when listed the run
in v1alpha1
.
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pritidesai, vdemeester 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 PR was just about matching the behaviour of |
Changes
In commit 3ea5981 we added a way for Pipeline.Spec.Finally to be serialized into
alpha Pipelines when downgrading from v1beta1. This was done to fix an
error occurring during conversion and to avoid potential data loss.
This commit adds a similar feature to PipelineRuns. Specifically, if a
PipelineRun nests a PipelineSpec with Finally then that too needs to be
serialized and stored on the alpha version to be deserialized later.
/kind bug
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
Release Notes