Skip to content

Commit 5ea737e

Browse files
committed
WIP OADP-4597: Fix build-errors in Prow local validation
Signed-off-by: A.Arnold <[email protected]>
1 parent c2ec38b commit 5ea737e

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

modules/nw-traditional-sharding.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
:_mod-docs-content-type: REFERENCE
66
[id="nw-traditional-sharding_{context}"]
7-
== Traditional sharding example
7+
= Traditional sharding example
88

99
An example of a configured Ingress Controller `finops-router` that has the label selector `spec.namespaceSelector.matchExpressions` with key values set to `finance` and `ops`:
1010

modules/olm-overriding-operator-pod-affinity.adoc

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ To control the placement of an Operator pod, complete the following steps:
188188
. Edit the Operator `Subscription` object to add an affinity:
189189
+
190190
ifndef::pod[]
191+
ifdef::olm[]
191192
[source,yaml]
192193
----
193194
apiVersion: operators.coreos.com/v1alpha1
@@ -211,13 +212,38 @@ spec:
211212
- ip-10-0-185-229.ec2.internal
212213
#...
213214
----
214-
ifdef::olm[]
215215
<1> Add a `nodeAffinity`, `podAffinity`, or `podAntiAffinity`. See the Additional resources section that follows for information about creating the affinity.
216-
endif::[]
216+
endif::olm[]
217+
217218
ifdef::node[]
219+
[source,yaml]
220+
----
221+
apiVersion: operators.coreos.com/v1alpha1
222+
kind: Subscription
223+
metadata:
224+
name: openshift-custom-metrics-autoscaler-operator
225+
namespace: openshift-keda
226+
spec:
227+
name: my-package
228+
source: my-operators
229+
sourceNamespace: operator-registries
230+
config:
231+
affinity: <1>
232+
nodeAffinity:
233+
requiredDuringSchedulingIgnoredDuringExecution:
234+
nodeSelectorTerms:
235+
- matchExpressions:
236+
- key: kubernetes.io/hostname
237+
operator: In
238+
values:
239+
- ip-10-0-185-229.ec2.internal
240+
#...
241+
----
218242
<1> Add a `nodeAffinity`.
219-
endif::[]
243+
endif::node[]
244+
220245
endif::pod[]
246+
221247
ifdef::pod[]
222248
[source,yaml]
223249
----

0 commit comments

Comments
 (0)