Describe the bug
As noted in #3050 (comment), Channel doesn't doesn't allow subscribers in the spec.
Spec says this:
Spec Requirements
v1alpha1 Spec: each channel CRD MUST contain an array of subscribers: spec.subscribable.subscribers
v1beta1 Spec: each channel CRD MUST contain an array of subscribers: spec.subscribers
When a channel.messaging.knative.dev is created, by default Knative creates an InMemoryChannel. When we create a subscription against that Channel, InMemoryChannel will have the subscribers in the status, but it is not propagated to channel.messaging.knative.dev. Other fields like status.address are propagated fine.
Expected behavior
I should be able to create a channel.messaging.knative.dev with spec.subscribable.subscribers and #3050 should pass.
To Reproduce
cat <<EOS |kubectl apply -f -
---
apiVersion: messaging.knative.dev/v1alpha1
kind: Channel
metadata:
name: foo
spec:
subscribable:
subscribers:
- UID: "1234"
ReplyUri: "foo.bar"
EOS
ends up in
Error from server (BadRequest): error when creating "channel_v1alpha1.yaml": admission webhook "validation.webhook.eventing.knative.dev" denied the request: validation failed: must not set the field(s): spec.subscribable.subscribers
Knative release version
0.14
Additional context
#3050
Describe the bug
As noted in #3050 (comment),
Channeldoesn't doesn't allowsubscribersin the spec.Spec says this:
When a
channel.messaging.knative.devis created, by default Knative creates anInMemoryChannel. When we create asubscriptionagainst thatChannel,InMemoryChannelwill have thesubscribersin the status, but it is not propagated tochannel.messaging.knative.dev. Other fields likestatus.addressare propagated fine.Expected behavior
I should be able to create a
channel.messaging.knative.devwithspec.subscribable.subscribersand #3050 should pass.To Reproduce
ends up in
Knative release version
0.14
Additional context
#3050