-
Notifications
You must be signed in to change notification settings - Fork 601
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
Defaulting for Channel should resolve the namespace from context, not the resource #4514
Comments
This doesn't happen when you apply YAML with |
kn could carry this as workaround for now, it'll embed the namespace in the request body. |
sounds good! |
so,
|
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
This might also affect broker class defaulting by namespace (if we even have that feature, I can't remember) |
…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
Since the kn workaround seems like was merged, can we close this one @aliok ? |
Let's keep this open since this is a |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
I still think that the issue described here is more than just helping kn to run the e2e tests and is a general issue with other clients as well that do not add the namespace to the request (which IMO is totally legit) |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
/assign |
/assign |
Describe the bug
When I use Kube REST api in the way
kn
uses it, I can see behavior differences when I post these 2:{"kind":"Channel","apiVersion":"messaging.knative.dev/v1beta1","metadata":{"name":"my-channel"}}
{"kind":"Channel","apiVersion":"messaging.knative.dev/v1beta1","metadata":{"name":"my-channel", "namespace":"knativetutorial"}}
URL posted is same:
apis/messaging.knative.dev/v1beta1/namespaces/knativetutorial/channels
This problem makes eventing webhook pick the wrong default channel for namespace.
See following.
Make IMC cluster default and KafkaChannel
knativetutorial
namespace default:Start proxy:
Post 2 channel requests to the same namespace URL; 1 with namespace in
metadata
, other not:First channel is created with KafkaChannel, the 2nd created with IMC.
Expected behavior
Defaulting to use the context namespace.
To Reproduce
Steps are above.
Knative release version
0.17, 0.18, 0.19
Additional context
Add any other context about the problem here such as proposed priority
The text was updated successfully, but these errors were encountered: