Skip to content

Commit

Permalink
Split broker create to kn/yaml variants
Browse files Browse the repository at this point in the history
  • Loading branch information
dsimansk committed Jul 19, 2023
1 parent b0ed5ea commit 0bd08ff
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions docs/eventing/experimental-features/eventtype-auto-creation.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,32 @@ With this experiemental feature enabled, we get `EventType`s on the broker ingre

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

```bash
kn broker create my-broker
```

```yaml
apiVersion: eventing.knative.dev/v1
kind: Broker
metadata:
namespace: default
name: my-broker
```
=== "kn CLI"

```bash
kn broker create my-broker
```

=== "Apply YAML"

1. Create a YAML file using the following example:

```yaml
apiVersion: eventing.knative.dev/v1
kind: Broker
metadata:
namespace: default
name: my-broker
```

1. Apply the YAML file by running the command:

```bash
kubectl apply -f <filename>.yaml
```
Where `<filename>` is the name of the file you created in the previous step.


## Produce Events to the Broker

Expand Down

0 comments on commit 0bd08ff

Please sign in to comment.