mirror of https://github.com/knative/docs.git
Update KafkaChannel examples to use v1beta1 (#2645)
This commit is contained in:
parent
e5f1984104
commit
3831270815
|
@ -85,7 +85,7 @@ metadata:
|
||||||
namespace: knative-eventing
|
namespace: knative-eventing
|
||||||
data:
|
data:
|
||||||
channelTemplateSpec: |
|
channelTemplateSpec: |
|
||||||
apiVersion: messaging.knative.dev/v1alpha1
|
apiVersion: messaging.knative.dev/v1beta1
|
||||||
kind: KafkaChannel
|
kind: KafkaChannel
|
||||||
spec:
|
spec:
|
||||||
numPartitions: 3
|
numPartitions: 3
|
||||||
|
|
|
@ -46,7 +46,7 @@ data:
|
||||||
kind: InMemoryChannel
|
kind: InMemoryChannel
|
||||||
namespaceDefaults:
|
namespaceDefaults:
|
||||||
some-namespace:
|
some-namespace:
|
||||||
apiVersion: messaging.knative.dev/v1alpha1
|
apiVersion: messaging.knative.dev/v1beta1
|
||||||
kind: KafkaChannel
|
kind: KafkaChannel
|
||||||
spec:
|
spec:
|
||||||
numPartitions: 2
|
numPartitions: 2
|
||||||
|
|
|
@ -12,7 +12,7 @@ Create a new object by configuring the YAML file as follows:
|
||||||
```
|
```
|
||||||
cat <<-EOF | kubectl apply -f -
|
cat <<-EOF | kubectl apply -f -
|
||||||
---
|
---
|
||||||
apiVersion: messaging.knative.dev/v1alpha1
|
apiVersion: messaging.knative.dev/v1beta1
|
||||||
kind: KafkaChannel
|
kind: KafkaChannel
|
||||||
metadata:
|
metadata:
|
||||||
name: my-kafka-channel
|
name: my-kafka-channel
|
||||||
|
@ -40,7 +40,7 @@ data:
|
||||||
# Configuration for defaulting channels that do not specify CRD implementations.
|
# Configuration for defaulting channels that do not specify CRD implementations.
|
||||||
default-ch-config: |
|
default-ch-config: |
|
||||||
clusterDefault:
|
clusterDefault:
|
||||||
apiVersion: messaging.knative.dev/v1alpha1
|
apiVersion: messaging.knative.dev/v1beta1
|
||||||
kind: KafkaChannel
|
kind: KafkaChannel
|
||||||
spec:
|
spec:
|
||||||
numPartitions: 3
|
numPartitions: 3
|
||||||
|
|
|
@ -35,7 +35,7 @@ spec:
|
||||||
config:
|
config:
|
||||||
br-default-channel:
|
br-default-channel:
|
||||||
channelTemplateSpec: |
|
channelTemplateSpec: |
|
||||||
apiVersion: messaging.knative.dev/v1alpha1
|
apiVersion: messaging.knative.dev/v1beta1
|
||||||
kind: KafkaChannel
|
kind: KafkaChannel
|
||||||
spec:
|
spec:
|
||||||
numPartitions: 10
|
numPartitions: 10
|
||||||
|
|
Loading…
Reference in New Issue