-
Notifications
You must be signed in to change notification settings - Fork 49
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
Conversation
specs/eventing/control-plane.md
Outdated
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. |
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.
MUST be discarded
One nit, otherwise looks good |
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. |
/LGTM |
approved on the TMC Sept 2 call. |
[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 |
* Require that spec.subscriber is set for Subscription. * Clarify MUST on discard, thanks Doug
…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>
…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>
…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>
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>
Followup from this comment; we're going to require
spec.subscriber
on both Triggers and Channels;spec.reply
is optional for Channels.