test(deployment): tolerations
This commit is contained in:
parent
a01c7d8c45
commit
1f6550d169
@ -86,6 +86,8 @@ tests:
|
|||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.terminationGracePeriodSeconds
|
path: spec.template.spec.terminationGracePeriodSeconds
|
||||||
value: 60
|
value: 60
|
||||||
|
- notExists:
|
||||||
|
path: spec.template.spec.tolerations
|
||||||
|
|
||||||
- it: Test additional arguments
|
- it: Test additional arguments
|
||||||
set:
|
set:
|
||||||
@ -304,6 +306,22 @@ tests:
|
|||||||
path: spec.template.spec.terminationGracePeriodSeconds
|
path: spec.template.spec.terminationGracePeriodSeconds
|
||||||
value: 120
|
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
|
- it: Test additional volumeMounts and volumes
|
||||||
set:
|
set:
|
||||||
deployment.postgresExporter.volumeMounts:
|
deployment.postgresExporter.volumeMounts:
|
||||||
|
@ -225,6 +225,10 @@ deployment:
|
|||||||
|
|
||||||
## @param deployment.tolerations Tolerations of the postgres-exporter deployment.
|
## @param deployment.tolerations Tolerations of the postgres-exporter deployment.
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
# - key: database/type
|
||||||
|
# operator: Equal
|
||||||
|
# value: postgres
|
||||||
|
# effect: NoSchedule
|
||||||
|
|
||||||
## @param deployment.topologySpreadConstraints TopologySpreadConstraints of the postgres-exporter deployment.
|
## @param deployment.topologySpreadConstraints TopologySpreadConstraints of the postgres-exporter deployment.
|
||||||
topologySpreadConstraints: []
|
topologySpreadConstraints: []
|
||||||
|
Loading…
Reference in New Issue
Block a user