test(deployment): nodeSelector
This commit is contained in:
parent
8d1f6622b8
commit
8f36f688d0
@ -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.nodeSelector
|
||||
|
||||
- it: Test additional arguments
|
||||
set:
|
||||
@ -198,6 +200,16 @@ tests:
|
||||
runAsNonRoot: true
|
||||
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
|
||||
set:
|
||||
deployment.postgresExporter.volumeMounts:
|
||||
|
Loading…
Reference in New Issue
Block a user