test(deployment): nodeSelector
This commit is contained in:
parent
8d1f6622b8
commit
8f36f688d0
@ -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.nodeSelector
|
||||||
|
|
||||||
- it: Test additional arguments
|
- it: Test additional arguments
|
||||||
set:
|
set:
|
||||||
@ -198,6 +200,16 @@ tests:
|
|||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
|
|
||||||
|
- it: Test nodeSelector
|
||||||
|
set:
|
||||||
|
deployment.nodeSelector:
|
||||||
|
foo: bar
|
||||||
|
asserts:
|
||||||
|
- equal:
|
||||||
|
path: spec.template.spec.nodeSelector
|
||||||
|
value:
|
||||||
|
foo: bar
|
||||||
|
|
||||||
- it: Test additional volumeMounts and volumes
|
- it: Test additional volumeMounts and volumes
|
||||||
set:
|
set:
|
||||||
deployment.postgresExporter.volumeMounts:
|
deployment.postgresExporter.volumeMounts:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user