Skip to content

Commit

Permalink
Added mention of channels to event type autocreate docs (#5639)
Browse files Browse the repository at this point in the history
Signed-off-by: Calum Murray <cmurray@redhat.com>
  • Loading branch information
Cali0707 authored Aug 1, 2023
1 parent b1450fe commit a52897a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/eventing/experimental-features/eventtype-auto-creation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## Overview

With the `eventtype-auto-creation` feature, we have possibliy to _auto create_ EventTypes that are received and ingressed by the Knative Broker implementations.
With the `eventtype-auto-creation` feature, we have possibliy to _auto create_ EventTypes that are received and ingressed by the Knative Broker and Channel implementations.

For making use of this _opt-in_ feature, we must turn it on in the `config-features`, by setting the `eventtype-auto-creation` flag to `enabled`:

Expand All @@ -26,10 +26,12 @@ data:
...
```

With this experiemental feature enabled, we get `EventType`s on the broker ingress for free. Instead of manually creating them as yaml manifests along the application code that talks to the `Broker` API.
With this experiemental feature enabled, we get `EventType`s on the broker/channel ingress for free, instead of manually creating them as yaml manifests along the application code that talks to the `Broker` or `Channel` API.

## Example

### Create a Broker

To check the feature is working, create a simple broker:


Expand Down Expand Up @@ -59,7 +61,7 @@ To check the feature is working, create a simple broker:
Where `<filename>` is the name of the file you created in the previous step.


## Produce Events to the Broker
### Produce Events to the Broker

The auto-creation feature is triggered by processed events. Therefore to verify the functionality we need to send a sample event with desired type. This can be achieved in a severals ways, below are two examples using `kn-plugin-event` and `cURL`
container in a cluster.
Expand Down Expand Up @@ -98,7 +100,7 @@ container in a cluster.
```
This is more complex, as we have to _craft_ the event as part of the `curl` HTTP POST request.

## Event Discovery
### Event Discovery

After the two produced events, we should be able to have discoverable events in the system, based on the `eventtype-auto-creation` feature:

Expand Down

0 comments on commit a52897a

Please sign in to comment.