test(deployment): nodeSelector

This commit is contained in:
Markus Pesch 2024-11-26 19:32:04 +01:00
parent 8d1f6622b8
commit 8f36f688d0
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -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: