You've already forked prometheus-postgres-exporter
							
							test(deployment): tolerations
This commit is contained in:
		| @@ -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: | ||||
|   | ||||
| @@ -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: [] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user