Skip to content

Commit 437a645

Browse files
Lukas FischerWeltraumschaf
authored andcommitted
#2007 Add tolerations and affinity to azure hook
The elastic hook snapshot for the tests was mising the tolerations and affinity fields for some reason, which made the tests fail. Signed-off-by: Lukas Fischer <lukas.fischer@iteratec.com>
1 parent c510064 commit 437a645

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

hooks/persistence-elastic/tests/__snapshot__/persistence-elastic_test.yaml.snap

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ matches the snapshot:
3434
type: Structured
3535
name: RELEASE-NAME-persistence-elastic
3636
spec:
37+
affinity:
38+
nodeAffinity:
39+
requiredDuringSchedulingIgnoredDuringExecution:
40+
nodeSelectorTerms:
41+
- matchExpressions:
42+
- key: foo
43+
operator: In
44+
values:
45+
- bar
46+
- baz
3747
env:
3848
- name: ELASTICSEARCH_INDEX_PREFIX
3949
value: scbv2
@@ -53,6 +63,11 @@ matches the snapshot:
5363
requests:
5464
cpu: 100m
5565
memory: 100Mi
66+
tolerations:
67+
- effect: NoSchedule
68+
key: foo
69+
operator: Exists
70+
value: value1
5671
ttlSecondsAfterFinished: 100
5772
type: ReadOnly
5873
volumeMounts:

0 commit comments

Comments
 (0)