Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,7 @@ metadata:
labels:
kafka.eventing.knative.dev/release: "v0.22.3"
spec:
# this deployment is going to be scaled up by the
# controller when the very first KafkaChannel is created
replicas: 0
replicas: 1
selector:
matchLabels:
messaging.knative.dev/channel: kafka-channel
Expand Down
15 changes: 15 additions & 0 deletions knative-operator/hack/001-eventing-kafkachannel_replicas1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/knative-operator/deploy/resources/knativekafka/1-channel-consolidated.yaml b/knative-operator/deploy/resources/knativekafka/1-channel-consolidated.yaml
index 393457ce..23da885d 100644
--- a/knative-operator/deploy/resources/knativekafka/1-channel-consolidated.yaml
+++ b/knative-operator/deploy/resources/knativekafka/1-channel-consolidated.yaml
@@ -726,9 +726,7 @@ metadata:
labels:
kafka.eventing.knative.dev/release: "v0.22.3"
spec:
- # this deployment is going to be scaled up by the
- # controller when the very first KafkaChannel is created
- replicas: 0
+ replicas: 1
selector:
matchLabels:
messaging.knative.dev/channel: kafka-channel
5 changes: 4 additions & 1 deletion knative-operator/hack/update-manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@ function download_kafka {

download_kafka knativekafka "$KNATIVE_EVENTING_KAFKA_VERSION" "${kafka_files[@]}"

# We set the replica to 1, for now, while upstream has it 0.
git apply "$root/knative-operator/hack/001-eventing-kafkachannel_replicas1.patch"

# This is for SRVKE-807.
git apply "$root/knative-operator/hack/007-eventing-kafka-pdb.patch"
git apply "$root/knative-operator/hack/007-eventing-kafka-pdb.patch"