Skip to content

Commit fed9152

Browse files
authored
Document KafkaSource v1 API (#6201)
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
1 parent 4e1b454 commit fed9152

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

code-samples/eventing/kafka/binding/event-source.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# KAFKA_TLS_CA_CERT_SECRET_NAME: Name of secret containing server CA cert to use when connecting with TLS (optional)
3030
# KAFKA_TLS_CA_CERT_SECRET_KEY: Key within secret containing server CA cert to use when connecting with TLS (optional)
3131

32-
apiVersion: sources.knative.dev/v1beta1
32+
apiVersion: sources.knative.dev/v1
3333
kind: KafkaSource
3434
metadata:
3535
name: kafka-source

docs/eventing/event-registry/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ After your event source is instantiated, EventTypes are added to the registry.
124124
Given the following KafkaSource sample to populate the registry:
125125

126126
```yaml
127-
apiVersion: sources.knative.dev/v1beta1
127+
apiVersion: sources.knative.dev/v1
128128
kind: KafkaSource
129129
metadata:
130130
name: kafka-sample

docs/eventing/sinks/job-sink.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ For example, you can trigger a `Job` when a Kafka record is sent to a Kafka topi
131131
a [`KafkaSource`](./../sources/kafka-source):
132132

133133
```yaml
134-
apiVersion: sources.knative.dev/v1beta1
134+
apiVersion: sources.knative.dev/v1
135135
kind: KafkaSource
136136
metadata:
137137
name: kafka-source

docs/eventing/sources/kafka-source/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ If you are using Strimzi:
133133
1. Modify `source/event-source.yaml` accordingly with bootstrap servers, topics, and so on:
134134
135135
```yaml
136-
apiVersion: sources.knative.dev/v1beta1
136+
apiVersion: sources.knative.dev/v1
137137
kind: KafkaSource
138138
metadata:
139139
name: kafka-source
@@ -187,7 +187,7 @@ Alternatively, if you are using a GitOps approach, you can add the `consumers` k
187187
188188
```yaml
189189
190-
apiVersion: sources.knative.dev/v1beta1
190+
apiVersion: sources.knative.dev/v1
191191
kind: KafkaSource
192192
metadata:
193193
name: kafka-source
@@ -253,7 +253,7 @@ The `KafkaSource` implements the `Delivery` Specificiation, allowing you to conf
253253

254254
```yaml
255255
256-
apiVersion: sources.knative.dev/v1beta1
256+
apiVersion: sources.knative.dev/v1
257257
kind: KafkaSource
258258
metadata:
259259
name: kafka-source
@@ -298,7 +298,7 @@ To specify the key deserializer, add the label `kafkasources.sources.knative.dev
298298
`KafkaSource` definition, as shown in the following example:
299299

300300
```yaml
301-
apiVersion: sources.knative.dev/v1beta1
301+
apiVersion: sources.knative.dev/v1
302302
kind: KafkaSource
303303
metadata:
304304
name: kafka-source
@@ -323,7 +323,7 @@ By default the `KafkaSource` starts consuming from the latest offset in each par
323323
to consume from the earliest offset, set the initialOffset field to `earliest`, for example:
324324

325325
```yaml
326-
apiVersion: sources.knative.dev/v1beta1
326+
apiVersion: sources.knative.dev/v1
327327
kind: KafkaSource
328328
metadata:
329329
name: kafka-source
@@ -368,7 +368,7 @@ KafkaSource expects these files to be in PEM format. If they are in another form
368368
2. Apply the KafkaSource. Modify the `bootstrapServers` and `topics` fields accordingly.
369369

370370
```yaml
371-
apiVersion: sources.knative.dev/v1beta1
371+
apiVersion: sources.knative.dev/v1
372372
kind: KafkaSource
373373
metadata:
374374
name: kafka-source-with-tls
@@ -431,7 +431,7 @@ Simple Authentication and Security Layer (SASL) is used by Apache Kafka for auth
431431
1. Create or modify a KafkaSource so that it contains the following spec options:
432432
433433
```yaml
434-
apiVersion: sources.knative.dev/v1beta1
434+
apiVersion: sources.knative.dev/v1
435435
kind: KafkaSource
436436
metadata:
437437
name: example-source

docs/eventing/sources/kafka-source/event-source.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# KAFKA_TLS_CA_CERT_SECRET_KEY: Key within secret containing server CA cert to use when connecting with TLS (optional)
3131
# KAFKA_INITIAL_OFFSET initial offset for the consumer group, should be one of 'earliest' or 'latest' (optional)
3232

33-
apiVersion: sources.knative.dev/v1beta1
33+
apiVersion: sources.knative.dev/v1
3434
kind: KafkaSource
3535
metadata:
3636
name: kafka-source

0 commit comments

Comments
 (0)