Skip to content
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

Allow Channel$ kinds and messaging API version in Subscriptions #1266

Closed
wants to merge 12 commits into from

Conversation

nachocano
Copy link
Contributor

@nachocano nachocano commented May 23, 2019

Helps with #1216

Proposed Changes

  • Allow to create Subscriptions where their spec.channel does not just allow the Channel kind (^Channel$), but also other kind of channels.
  • The change allows any kind that ends in Channel (Channel$).
  • Also added support for the apiVersion messaging.knative.dev/v1alpha1.
  • This is needed for the different channels CRDs. E.g., InMemoryChannel, KafkaChannel, NATSSChannel, etc.

Release Note

Subscriptions can now have different Channel kinds as part of their spec.channel. E.g., "InMemoryChannel", "KafkaChannel", etc, and support the "messaging.knative.dev/v1alpha1` apiVersion.

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label May 23, 2019
@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 23, 2019
@nachocano
Copy link
Contributor Author

/assign @Harwayne

If approved, this should be added as part of the Channel Spec. That is, the naming convention for Channel kinds should end in Channel.

@Harwayne
Copy link
Contributor

The code looks fine, but I'm not sure we want to require the name to end in Channel. For now, my preference is anything matching the Subscribable duck type is allowed, regardless of name. However, I don't have a good idea how to actually implement that...

@nachocano
Copy link
Contributor Author

The code looks fine, but I'm not sure we want to require the name to end in Channel. For now, my preference is anything matching the Subscribable duck type is allowed, regardless of name. However, I don't have a good idea how to actually implement that...

Makes sense. Let me see if I can find a way to do that. I'll put a TODO in the code in case this blocks us, and we can solve it later on.

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: nachocano
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: harwayne

If they are not already assigned, you can assign the PR to them by writing /assign @harwayne in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-eventing-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/eventing/v1alpha1/subscription_validation.go 100.0% 97.0% -3.0

@nachocano
Copy link
Contributor Author

Just talked with @evankanderson and @akashrv and we agreed that we will remove the validation for ^Channel$, we will let the Subscription be created, and if it's not subscribable, then we will mark it as failed in the controller... Closing this PR

@nachocano nachocano closed this May 23, 2019
markusthoemmes pushed a commit to markusthoemmes/knative-eventing that referenced this pull request May 17, 2021
matzew pushed a commit to matzew/eventing that referenced this pull request Jun 2, 2021
mgencur pushed a commit to openshift-knative/eventing that referenced this pull request Nov 14, 2022
* Rollback certificate algorithm changes (knative#1281)

* Allow URIs to be resolved without reconciler context (knative#2095) (knative#1274)

Co-authored-by: Mona Borham <mionaut@gmail.com>

* fix oom (knative#1266)

* silent noisy metrics (knative#1223)

Co-authored-by: Markus Thömmes <markusthoemmes@me.com>
Co-authored-by: Lukas Berk <lberk@redhat.com>
Co-authored-by: Mona Borham <mionaut@gmail.com>
Co-authored-by: Stavros Kontopoulos <st.kontopoulos@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants