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 @@ -565,6 +565,14 @@ spec:
metadata:
labels: *labels
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels: *labels
topologyKey: kubernetes.io/hostname
weight: 100
serviceAccountName: imc-dispatcher
containers:
- name: dispatcher
Expand Down
19 changes: 19 additions & 0 deletions openshift-knative-operator/hack/005-imc-pod_anti_affinity.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/openshift-knative-operator/cmd/operator/kodata/knative-eventing/0.18.6/3-in-memory-channel.yaml b/openshift-knative-operator/cmd/operator/kodata/knative-eventing/0.18.6/3-in-memory-channel.yaml
index 4a976467..c7f7cfef 100644
--- a/openshift-knative-operator/cmd/operator/kodata/knative-eventing/0.18.6/3-in-memory-channel.yaml
+++ b/openshift-knative-operator/cmd/operator/kodata/knative-eventing/0.18.6/3-in-memory-channel.yaml
@@ -565,6 +565,14 @@ spec:
metadata:
labels: *labels
spec:
+ affinity:
+ podAntiAffinity:
+ preferredDuringSchedulingIgnoredDuringExecution:
+ - podAffinityTerm:
+ labelSelector:
+ matchLabels: *labels
+ topologyKey: kubernetes.io/hostname
+ weight: 100
serviceAccountName: imc-dispatcher
containers:
- name: dispatcher
3 changes: 3 additions & 0 deletions openshift-knative-operator/hack/update-manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ git apply "$root/openshift-knative-operator/hack/002-openshift-eventing-role.pat

# SRVKE-654: relax the MT adapter replica
git apply "$root/openshift-knative-operator/hack/004-eventing-pingsource-one-replica.patch"

# Apply port of 4640 to Serverless Operator
git apply "$root/openshift-knative-operator/hack/005-imc-pod_anti_affinity.patch"