Bug report
Using the docs https://knative.dev/docs/eventing/channels/default-channels/, we can configure the default channel, assume Kafka is installed and I configure the default-ch-webhook CM to be like:
apiVersion: v1
kind: ConfigMap
metadata:
name: default-ch-webhook
namespace: knative-eventing
data:
default-ch-config: |
clusterDefault:
apiVersion: messaging.knative.dev/v1
kind: InMemoryChannel
namespaceDefaults:
knativetutorial:
apiVersion: messaging.knative.dev/v1beta1
kind: KafkaChannel
spec:
numPartitions: 2
replicationFactor: 1
NOTE: Kafka is configured and running correctly and so is KafkaChannel resource
When I do kn channel create my-events-ch -n knativetutorial, I expect the channel to be created as KafkaChannel type but its getting defaulted to InMemoryChannel
e.g.
$ kn channel -n knativetutorial ls
NAME TYPE URL AGE READY REASON
my-events-ch InMemoryChannel http://my-events-ch-kn-channel.knativetutorial.svc.cluster.local 4m33s True
Expected behavior
cat <<EOF | kubectl create -f -
apiVersion: messaging.knative.dev/v1
kind: Channel
metadata:
name: my-events-ch
namespace: knativetutorial
EOF
kn channel ls
NAME TYPE URL AGE READY REASON
my-events-ch KafkaChannel http://my-events-ch-kn-channel.knativetutorial.svc.cluster.local 13s True
Steps to reproduce the problem
- Set default channel webhook settings to be like
apiVersion: v1
kind: ConfigMap
metadata:
name: default-ch-webhook
namespace: knative-eventing
data:
default-ch-config: |
clusterDefault:
apiVersion: messaging.knative.dev/v1
kind: InMemoryChannel
namespaceDefaults:
knativetutorial:
apiVersion: messaging.knative.dev/v1beta1
kind: KafkaChannel
spec:
numPartitions: 2
replicationFactor: 1
- Run the command
kn channel create -n knativetutorial my-events-ch
kn version
Version: v0.18.0
Build Date: 2020-10-07 19:07:26
Git Revision: 60f2c2c5
Supported APIs:
* Serving
- serving.knative.dev/v1 (knative-serving v0.18.0)
* Eventing
- sources.knative.dev/v1alpha2 (knative-eventing v0.18.0)
- eventing.knative.dev/v1beta1 (knative-eventing v0.18.0)
Knative (serving/eventing) version
0.17.0
/kind good-first-issue
Bug report
Using the docs https://knative.dev/docs/eventing/channels/default-channels/, we can configure the default channel, assume Kafka is installed and I configure the
default-ch-webhookCM to be like:NOTE: Kafka is configured and running correctly and so is KafkaChannel resource
When I do
kn channel create my-events-ch -n knativetutorial, I expect the channel to be created as KafkaChannel type but its getting defaulted toInMemoryChannele.g.
Expected behavior
Steps to reproduce the problem
kn channel create -n knativetutorial my-events-chkn version
Knative (serving/eventing) version
/kind good-first-issue