test(deployment): tolerations

This commit is contained in:
Markus Pesch 2024-11-26 19:53:04 +01:00
parent a01c7d8c45
commit 1f6550d169
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
2 changed files with 22 additions and 0 deletions

View File

@ -86,6 +86,8 @@ tests:
- equal:
path: spec.template.spec.terminationGracePeriodSeconds
value: 60
- notExists:
path: spec.template.spec.tolerations
- it: Test additional arguments
set:
@ -304,6 +306,22 @@ tests:
path: spec.template.spec.terminationGracePeriodSeconds
value: 120
- it: Test tolerations
set:
deployment.tolerations:
- key: database/type
operator: Equal
value: postgres
effect: NoSchedule
asserts:
- equal:
path: spec.template.spec.tolerations
value:
- key: database/type
operator: Equal
value: postgres
effect: NoSchedule
- it: Test additional volumeMounts and volumes
set:
deployment.postgresExporter.volumeMounts:

View File

@ -225,6 +225,10 @@ deployment:
## @param deployment.tolerations Tolerations of the postgres-exporter deployment.
tolerations: []
# - key: database/type
# operator: Equal
# value: postgres
# effect: NoSchedule
## @param deployment.topologySpreadConstraints TopologySpreadConstraints of the postgres-exporter deployment.
topologySpreadConstraints: []