Update spec.md with v1 API#4594
Conversation
Detailed changes: - update/add object descriptions - update groups to eventing.knative.dev/v1 - use consistent types: String -> string; int64 -> int - replace ObjectReference with KReference - add Requirement and Defaults columns - add annotations to Status descriptions - add missing Status conditions - add section on how conditions are used based on serving spec - detail the Addressable interface - update/remove Shared Schema Objects
|
/retest Thanks for updating this doc. Let's see if unit tests still fail. |
vaikas
left a comment
There was a problem hiding this comment.
Thanks so much for working on this!
| | `conditions` | [`[]apis.Condition`](#apis.condition) | Optional | Channel conditions. The latest available observations of the resource's current state. | | | ||
| | `annotations` | `map[string]string` | Optional | Fields to save additional state as well as convey more information to the user. | | | ||
| | `address` | [`duckv1.Addressable`](#duckv1.addressable) | Required | Address of the endpoint (as an URI) for getting events delivered into the channel. | | | ||
| | `subscribers` | [`[]SubscriberStatus`](#subscriberstatus) | Required | The list of statuses for each of the channel's subscribers. | | |
There was a problem hiding this comment.
I think you can point to a eventingduckv1.ChannelableStatus to remove some of these fields?
There was a problem hiding this comment.
I expanded the inherited types throughout the spec and only referenced and described the ones that are used as field types. Referencing ChannelableStatus would break that pattern. Given this information, do you still prefer using ChannelableStatus here?
Codecov Report
@@ Coverage Diff @@
## master #4594 +/- ##
=======================================
Coverage 81.05% 81.05%
=======================================
Files 291 291
Lines 8220 8220
=======================================
Hits 6663 6663
Misses 1156 1156
Partials 401 401 Continue to review full report at Codecov.
|
| | `deadLetterSink` | [`duckv1.Destination`](#duckv1.Destination) | Optional | The sink receiving event that could not be sent to a `Destination`. | | | ||
| | `retry` | `int` | Optional | The minimum number of retries the sender should attempt when sending an event before moving it to the dead letter sink (when specified) or discarded (otherwise). | | | ||
| | `backoffPolicy` | `string` | Optional | The retry backoff policy (`linear` or `exponential`). | | | ||
| | `backoffDelay` | `string` | Optional | For linear policy, backoff delay is backoffDelay\*<numberOfRetries>. For exponential policy, backoff delay is backoffDelay\*2^<numberOfRetries>. | | |
There was a problem hiding this comment.
This will have the same problem as in PR #4690. Can you please make sure this PR will be applied here too?
|
@AlexandraRoatis some tests are failing. Looks like vendoring issues. |
|
@tayarani I expect that needs to be fixed externally, since it's not related to this change. |
|
Yeah, I would assume another rebase on master would fix it. I wasn't recommending you run any update scripts. |
| # Implementation Helper | ||
|
|
||
| This document supplements the official [spec](spec.md) with useful | ||
| implementation details. |
There was a problem hiding this comment.
If this only pertains to the ChannelBased Broker, then I think we should state that up front so it's clear which implementation details we're talking about. Otherwise the conditions, for example L40 should be matched with the spec.
|
Thank you so much for continued work on this. I personally think that this is so close that I'd be happy to get this merged and iterate with smaller changes as necessary. |
|
Unfortunately, merging the master branch in seems to have not helped with the failing tests. |
|
Ok, natss / rabbitmq were fixed, re-ran the jobs and greenness is all around us, woot woot!. I'm going to merge this and we can make more changes in a followup PRs. I created an issue for implementation spec file that we can tackle, if there are others that need followup let's create an issue for those. Thanks much for doing this!!! |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AlexandraRoatis, vaikas The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/unhold |
Fixes #4092
The Object Model descriptions are out of date.
Also removed a duplicate spec file.
Proposed Changes
eventing.knative.dev/v1String->string;int64->intObjectReferencewithKReferenceannotationsto Status descriptionsAddressableinterfaceRelease Note
Docs