-
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
Move to the v1beta1 Conditions implementation. #744
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
/hold |
2893bc5
to
5888d4a
Compare
/hold cancel |
5888d4a
to
395c32c
Compare
@@ -113,16 +114,20 @@ type PipelineTrigger struct { | |||
|
|||
// PipelineRunStatus defines the observed state of PipelineRun | |||
type PipelineRunStatus struct { | |||
Conditions duckv1alpha1.Conditions `json:"conditions"` | |||
duckv1beta1.Status `json:",inline"` |
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 thing this includes that I don't see here is ObservedGeneration
.
For mutable types, this is important to understand whether the overall Status reflects the latest Spec.
Basically, if metadata.generation == status.observedGeneration
, then I can believe the conditions.
Not for this change, but probably worth an issue.
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.
ah I see, yeah we'll need to update our usage of Condition
to reflect that then 👼
(adding this to my todo 🙃 )
/lgtm |
@mattmoor: changing LGTM is restricted to assignees, and only tektoncd/pipeline repo collaborators may be assigned issues. In 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. |
Thanks for keeping everything up to date @vdemeester !! 🎉 One thing that seems to be missing from the existing commit messages - and from the linked knative/pkg PR - is kind of a higher level explanation of what's going on here (i.e. what is Conditions, why did it change to v1beta1, why do we want this change, why do we have to make it - im assuming some kind of co-vendoring situation) 🙏 Anyway tho if you want to stick with what you've got now I won't be too upset, the messages do have sweet emojis ;) /lgtm I wasn't clear if you wanted to make that /hold (p.s. @mattmoor any plans on moving this lib into its own repo outside of pkg? would be pretty sweeeeet) /meow space |
In 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. |
Lol 😂 Right, so I wasn't sure about what to include as explaination there, but it's a mix of "keeping things up-to-date" and "assuming some kind of co-vendoring situation" in the near future 💃
I was gonna fix that in a follow-up but I could do it too 😅 |
/lgtm |
/hold cancel |
ahah 😓 I need to rebase… |
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
See here for more context on what's changed (no breaking changes): knative/pkg#361 Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
See knative/pkg@8b3dc0d Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
`apis.FieldError` output has change a bit Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
c56b0e8
to
137f80d
Compare
/test pull-tekton-pipeline-integration-tests |
/lgtm i wasn't sure if you wanted to merge this as-is or you wanted to address @mattmoor 's comment first so feel free to remove this if you want to go ahead as-is: /hold |
/hold cancel Let's do that in follow-up 👼 |
Changes
See here for more context on what's changed (no breaking changes): knative/pkg#361
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide
for more details.
cc @mattmoor