-
Notifications
You must be signed in to change notification settings - Fork 331
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 Condition stuff to apis, add a v1beta1 Status. #361
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mattmoor 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 Putting a hold on this, but I'd like to land it once we cut 0.5 |
You can see my WIP import into serving here, although I'll probably split it across a few PRs. |
I'll fix coverage too :( |
588cba1
to
7947aaf
Compare
This needs: #358 UPDATE: pushing the above out, we're not ready for it in serving. :( |
This moves the common Condition stuff to apis, and creates a v1beta1 form of Status that uses the Condition it defines (changing this in v1alpha1 is too breaking). There aren't really any meaningful changes in this PR, mostly reorganization. Enumerating what I did: 1. Copied `condition_set*.go` to `apis/`, 1. Copied the `Condition` portions of `conditions_types.go` to `apis/`, 1. Copied the balance of `conditions_types.go` to `apis/duck/v1beta1/status_types.go`, 1. Changed the parts of the above to reference things in the appropriate new places, 1. Removed the reflection-based `ConditionsAccessor` stuff, implementing it instead on `duckv1beta1.Status`. 1. Incorporate: knative#358
The following is the coverage report on pkg/.
|
/hold cancel This creates a second parallel implementation, so it won't disrupt anyone if it goes in early. |
See here for more context on what's changed (no breaking changes): knative/pkg#361
See here for more context on what's changed (no breaking changes): knative/pkg#361
/lgtm |
See here for more context on what's changed (no breaking changes): knative/pkg#361
See here for more context on what's changed (no breaking changes): knative/pkg#361
See here for more context on what's changed (no breaking changes): knative/pkg#361
See here for more context on what's changed (no breaking changes): knative/pkg#361 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 here for more context on what's changed (no breaking changes): knative/pkg#361 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 here for more context on what's changed (no breaking changes): knative/pkg#361 Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
Co-authored-by: qingliu <qingliu@alauda.io>
This moves the common Condition stuff to apis, and creates a v1beta1 form of Status that uses the Condition it defines (changing this in v1alpha1 is too breaking).
There aren't really any meaningful changes in this PR, mostly reorganization. Enumerating what I did:
condition_set*.go
toapis/
,Condition
portions ofconditions_types.go
toapis/
,conditions_types.go
toapis/duck/v1beta1/status_types.go
,ConditionsAccessor
stuff, implementing it instead onduckv1beta1.Status
.cc @vdemeester (since you commented on the predecessors)
FYI I was able to import this into serving without any code changes, then lots to take advantage of it.