Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/spec/broker.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ with that particular Broker, while the `TriggerSpec.Delivery`, if configured,
fully overrides `BrokerSpec.Delivery` for that particular Trigger, hence:

- When `BrokerSpec.Delivery` and `TriggerSpec.Delivery` are both not configured,
no delivery spec MUST be used.
no delivery spec SHOULD be used.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait, why are we changing all of these? I can see changing the TriggerSpec.Delivery but why all of them?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine, atm BrokerSpec.Delivery it's not compliant in all brokers (like in mtbroker)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@slinkydeveloper @zhongduo I don't see why we needed to change all these to support backwards compatibility.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not familiar with all the other brokers, but slinkydeveloper seems to make the point that this is not supported by all the brokers too. I am good with keeping the origin too, though we use MUST rarely.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vaikas do we want this spec to "map to the reality", or the "reality map to the spec"?

- When `BrokerSpec.Delivery` is configured, but not the specific
`TriggerSpec.Delivery`, then the `BrokerSpec.Delivery` MUST be used.
- When `TriggerSpec.Delivery` is configured, then `TriggerSpec.Delivery` MUST be
`TriggerSpec.Delivery`, then the `BrokerSpec.Delivery` SHOULD be used.
- When `TriggerSpec.Delivery` is configured, then `TriggerSpec.Delivery` SHOULD be
used.

## Data Plane
Expand Down