Skip to content
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

Require that spec.subscriber is set for Subscription. #30

Merged
merged 3 commits into from
Sep 2, 2021

Conversation

evankanderson
Copy link
Member

Followup from this comment; we're going to require spec.subscriber on both Triggers and Channels; spec.reply is optional for Channels.

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Jul 25, 2021
@knative-prow-robot knative-prow-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 25, 2021
@duglin duglin removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 5, 2021
during the delivery.
The `spec.subscriber` destination MUST be set; if the `spec.reply` field is not
set, [replies](data-plane.md#derived-reply-events) from the `spec.subscriber`
are discarded.
Copy link
Contributor

Choose a reason for hiding this comment

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

MUST be discarded

@duglin
Copy link
Contributor

duglin commented Aug 5, 2021

One nit, otherwise looks good

@n3wscott
Copy link

This changes channels, and we might need to make a migration script or bump the version of the Subscription CRD to support this without bricking clusters.

@duglin
Copy link
Contributor

duglin commented Sep 2, 2021

/LGTM

@duglin
Copy link
Contributor

duglin commented Sep 2, 2021

approved on the TMC Sept 2 call.
/LGTM
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 2, 2021
@knative-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: duglin, evankanderson

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 2, 2021
@knative-prow-robot knative-prow-robot merged commit cada201 into knative:main Sep 2, 2021
salaboy pushed a commit to salaboy/specs that referenced this pull request Sep 22, 2021
* Require that spec.subscriber is set for Subscription.

* Clarify MUST on discard, thanks Doug
creydr added a commit to creydr/knative-eventing that referenced this pull request Nov 14, 2022
…o GA

As per knative/specs#30 the spec was changed
from requiring one of `spec.subscriber` or `spec.reply` to be set to
require that `spec.subscriber` is set.

As part of this change the `strict-subscriber` feature flag was
introduced to disable this validation and promoted to beta (enabled by
default) in 1.7 (knative#6473).

This commit removes this feature flag again so the validation can't be
disabled anymore.

Signed-off-by: Christoph Stäbler <cstabler@redhat.com>
creydr added a commit to creydr/knative-eventing that referenced this pull request Nov 16, 2022
…o GA

As per knative/specs#30 the spec was changed
from requiring one of `spec.subscriber` or `spec.reply` to be set to
require that `spec.subscriber` is set.

As part of this change the `strict-subscriber` feature flag was
introduced to disable this validation and promoted to beta (enabled by
default) in 1.7 (knative#6473).

This commit removes this feature flag again so the validation can't be
disabled anymore.

Signed-off-by: Christoph Stäbler <cstabler@redhat.com>
creydr added a commit to creydr/knative-eventing that referenced this pull request Nov 16, 2022
…o GA

As per knative/specs#30 the spec was changed
from requiring one of `spec.subscriber` or `spec.reply` to be set to
require that `spec.subscriber` is set.

As part of this change the `strict-subscriber` feature flag was
introduced to disable this validation and promoted to beta (enabled by
default) in 1.7 (knative#6473).

This commit removes this feature flag again so the validation can't be
disabled anymore.

Signed-off-by: Christoph Stäbler <cstabler@redhat.com>
knative-prow bot pushed a commit to knative/eventing that referenced this pull request Nov 16, 2022
Fixes #5756

As per knative/specs#30 the spec was changed
from requiring one of `spec.subscriber` or `spec.reply` to be set to
require that `spec.subscriber` is set.

As part of this change the `strict-subscriber` feature flag was
introduced to disable this validation (#5762) and promoted to beta
(enabled by default) in 1.7 (#6473).

:broom: This commit removes this feature flag again so the validation
can't be disabled anymore.

## Proposed Changes
* Remove `strict-subscriber` feature flag
* Promote strict subscriber validation to GA

### Pre-review Checklist

- [ ] **At least 80% unit test coverage**
- [ ] **E2E tests** for any new behavior
- [ ] **Docs PR** for any user-facing impact
- [ ] **Spec PR** for any new API feature
- [ ] **Conformance test** for any change to the spec

**Release Note**
```release-note
Remove the possibility to disable strict subscriber validation.
When the reply field is specified without a subscriber, the reply field won't be used as a subscriber by default and the subscriber validation will fail.
```

Signed-off-by: Christoph Stäbler <cstabler@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants