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 |       path: spec.template.spec.containers[0].resources | ||||||
|   - notExists: |   - notExists: | ||||||
|       path: spec.template.spec.containers[0].securityContext |       path: spec.template.spec.containers[0].securityContext | ||||||
|  |   - notExists: | ||||||
|  |       path: spec.template.spec.dnsConfig | ||||||
|   - notExists: |   - notExists: | ||||||
|       path: spec.template.spec.nodeSelector |       path: spec.template.spec.nodeSelector | ||||||
|   - notExists: |   - notExists: | ||||||
| @@ -202,6 +204,20 @@ tests: | |||||||
|         runAsNonRoot: true |         runAsNonRoot: true | ||||||
|         runAsUser: 1000 |         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 | - it: Test nodeSelector | ||||||
|   set: |   set: | ||||||
|     deployment.nodeSelector: |     deployment.nodeSelector: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user