Skip to content

[Experimental] Spec non-compliance: spec.subscriber MUST be set #5756

@evankanderson

Description

@evankanderson

Describe the bug
As part of knative/specs#30 to simplify the user experience of Subscriptions, the spec was changed from requiring one of spec.subscriber or spec.reply to be set to requiring that spec.subscriber is set.

Expected behavior
An admission validation error if a Subscription is created without a subscriber.

To Reproduce
Create a Subscription like so:

apiVersion: messaging.knative.dev/v1
kind: Subscription
metadata:
  name: i-am-a-bad-bad-subscription
spec:
  channel:
    kind: Channel
    apiVersion: messaging.knative.dev/v1
    name: dont-care
  reply:
    uri: http://dev/null

Knative release version

0.26

Additional context
Should probably get this in for 1.0

Metadata

Metadata

Labels

kind/bugCategorizes issue or PR as related to a bug.roadmapIssues for linking from the roadmaptriage/acceptedIssues which should be fixed (post-triage)

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions