-
Notifications
You must be signed in to change notification settings - Fork 263
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
kn channel create does not honour default-ch-webhook
settings
#1100
Comments
We switched to use the default "Channel" CRD which actually uses the default as configured for the cluster. So actually I would expect it to be just "Channel" as type in the list. @navidshaikh do you know whether this was included in 0.18 ? |
@rhuss not sure I got what you meant, you mean |
FYI, I bumped into this as well. @rhuss, the configmap is not entirely ignored. Only the So, |
@rhuss : Yes, we populate
@aliok : I could reproduce the issue using (v1beta1 apis) yaml + kubectl as well. Cluster wide default works while namespace default doesn't. - Setup eventing at v0.18.4 and kafka- Set clusterwide channel to IMC (v1beta1) and namespace (knativetutorial) to Kafka (v1alpha1)
create a channel in default namespace
create a channel in knativetutorial namespace
verify using kn
notice that the channel in knativetutorial should be a kafka channel based on the CM set above |
@navidshaikh thanks for trying this.
I will verify though. BTW, how is the process for |
oh, @navidshaikh I just realized the |
@navidshaikh sorry, the typo got me confused and I made assumptions in 2 comments earlier. I don't understand why (since Configure default-ch-webhook
Create a
List channels:
Works as expected. I also tried using
But, when I create channels with
|
and, I tried this with Knative eventing 0.17.8, eventing-contrib 0.17.x, |
The root cause of this issue here is this one in Knative Eventing: knative/eventing#4514 |
since on the eventing side, defaulting for channel isnt picking the namespace from the context (see knative/eventing#4514) workaround for knative#1100 this changeset should be reverted when eventing#4514 is resolved
* Embed the namespace in request body while creating channels since on the eventing side, defaulting for channel isnt picking the namespace from the context (see knative/eventing#4514) workaround for #1100 this changeset should be reverted when eventing#4514 is resolved * Add CHANGELOG
/close The issue is opened against eventing and we're carrying workaround for now. |
@navidshaikh: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
…1117) * Embed the namespace in request body while creating channels since on the eventing side, defaulting for channel isnt picking the namespace from the context (see knative/eventing#4514) workaround for knative#1100 this changeset should be reverted when eventing#4514 is resolved * Add CHANGELOG
…1117) * Embed the namespace in request body while creating channels since on the eventing side, defaulting for channel isnt picking the namespace from the context (see knative/eventing#4514) workaround for knative#1100 this changeset should be reverted when eventing#4514 is resolved * Add CHANGELOG
* Embed the namespace in request body while creating channels (#1117) * Embed the namespace in request body while creating channels since on the eventing side, defaulting for channel isnt picking the namespace from the context (see knative/eventing#4514) workaround for #1100 this changeset should be reverted when eventing#4514 is resolved * Add CHANGELOG * Update changelog for v0.18.3
* Embed the namespace in request body while creating channels (#1117) * Embed the namespace in request body while creating channels since on the eventing side, defaulting for channel isnt picking the namespace from the context (see knative/eventing#4514) workaround for #1100 this changeset should be reverted when eventing#4514 is resolved * Add CHANGELOG * Update CHANGELOG for v0.17.4
…1117) * Embed the namespace in request body while creating channels since on the eventing side, defaulting for channel isnt picking the namespace from the context (see knative/eventing#4514) workaround for knative#1100 this changeset should be reverted when eventing#4514 is resolved * Add CHANGELOG
* Embed the namespace in request body while creating channels (#1117) * Embed the namespace in request body while creating channels since on the eventing side, defaulting for channel isnt picking the namespace from the context (see knative/eventing#4514) workaround for #1100 this changeset should be reverted when eventing#4514 is resolved * Add CHANGELOG * Update CHANGELOG for v0.19.1 * Cross-compile the kn binary for linux/s390x (#1083) * Update CHANGELOG for v0.19.1 * Fix date in changelog * Fix race conditions when creating watches (#1113) * Fix a race condition between creating a watch and initiating the action that emits the event it is watching for * update changelog * add PR ID to changelog entry * Fix merge in Changelog * Fix table format in Changelog
* [release-1.3] Add kn-plugin-func v0.25.0 * Update vendor dir
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: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 toInMemoryChannel
e.g.
Expected behavior
Steps to reproduce the problem
kn channel create -n knativetutorial my-events-ch
kn version
Knative (serving/eventing) version
/kind good-first-issue
The text was updated successfully, but these errors were encountered: