test(deployment): dnsConfig

This commit is contained in:
Markus Pesch 2024-11-26 19:36:44 +01:00
parent 967d36cafb
commit 8618b52ef6
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.dnsConfig
- notExists:
path: spec.template.spec.nodeSelector
- notExists:
@ -202,6 +204,20 @@ tests:
runAsNonRoot: true
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
set:
deployment.nodeSelector: