You've already forked prometheus-postgres-exporter
							
							test(deployment): dnsPolicy
This commit is contained in:
		| @@ -66,6 +66,8 @@ tests: | |||||||
|       path: spec.template.spec.containers[0].securityContext |       path: spec.template.spec.containers[0].securityContext | ||||||
|   - notExists: |   - notExists: | ||||||
|       path: spec.template.spec.dnsConfig |       path: spec.template.spec.dnsConfig | ||||||
|  |   - notExists: | ||||||
|  |       path: spec.template.spec.dnsPolicy | ||||||
|   - notExists: |   - notExists: | ||||||
|       path: spec.template.spec.nodeSelector |       path: spec.template.spec.nodeSelector | ||||||
|   - notExists: |   - notExists: | ||||||
| @@ -218,6 +220,14 @@ tests: | |||||||
|         - "8.8.8.8" |         - "8.8.8.8" | ||||||
|         - "8.8.4.4" |         - "8.8.4.4" | ||||||
|  |  | ||||||
|  | - it: Test dnsPolicy | ||||||
|  |   set: | ||||||
|  |     deployment.dnsPolicy: ClusterFirst | ||||||
|  |   asserts: | ||||||
|  |   - equal: | ||||||
|  |       path: spec.template.spec.dnsPolicy | ||||||
|  |       value: ClusterFirst | ||||||
|  |  | ||||||
| - it: Test nodeSelector | - it: Test nodeSelector | ||||||
|   set: |   set: | ||||||
|     deployment.nodeSelector: |     deployment.nodeSelector: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user