Skip to content

Commit 4eb9a09

Browse files
author
Lukas Fischer
committed
#2007 Add tolerations and affinity to azure hook
The defectdojo 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 fd5e1bb commit 4eb9a09

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

hooks/persistence-defectdojo/tests/__snapshot__/persistence-defectdojo_test.yaml.snap

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ matches the snapshot:
1515
type: Unstructured
1616
name: RELEASE-NAME-persistence-defectdojo
1717
spec:
18+
affinity:
19+
nodeAffinity:
20+
requiredDuringSchedulingIgnoredDuringExecution:
21+
nodeSelectorTerms:
22+
- matchExpressions:
23+
- key: foo
24+
operator: In
25+
values:
26+
- bar
27+
- baz
1828
env:
1929
- name: DEFECTDOJO_URL
2030
value: http://defectdojo-django.default.svc
@@ -38,6 +48,11 @@ matches the snapshot:
3848
requests:
3949
cpu: 100m
4050
memory: 100Mi
51+
tolerations:
52+
- effect: NoSchedule
53+
key: foo
54+
operator: Exists
55+
value: value1
4156
ttlSecondsAfterFinished: 100
4257
type: ReadAndWrite
4358
volumeMounts:

0 commit comments

Comments
 (0)