You've already forked prometheus-postgres-exporter
							
							test(deployment): dnsConfig
This commit is contained in:
		| @@ -64,6 +64,8 @@ tests: | ||||
|       path: spec.template.spec.containers[0].resources | ||||
|   - notExists: | ||||
|       path: spec.template.spec.containers[0].securityContext | ||||
|   - notExists: | ||||
|       path: spec.template.spec.dnsConfig | ||||
|   - notExists: | ||||
|       path: spec.template.spec.nodeSelector | ||||
|   - notExists: | ||||
| @@ -202,6 +204,20 @@ tests: | ||||
|         runAsNonRoot: true | ||||
|         runAsUser: 1000 | ||||
|  | ||||
| - it: Test dnsConfig | ||||
|   set: | ||||
|     deployment.dnsConfig: | ||||
|       nameservers: | ||||
|       - "8.8.8.8" | ||||
|       - "8.8.4.4" | ||||
|   asserts: | ||||
|   - equal: | ||||
|       path: spec.template.spec.dnsConfig | ||||
|       value: | ||||
|         nameservers: | ||||
|         - "8.8.8.8" | ||||
|         - "8.8.4.4" | ||||
|  | ||||
| - it: Test nodeSelector | ||||
|   set: | ||||
|     deployment.nodeSelector: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user