test(deployment): dnsPolicy

This commit is contained in:
Markus Pesch 2024-11-26 19:37:56 +01:00
parent 8618b52ef6
commit 70abc21fb4
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -66,6 +66,8 @@ tests:
path: spec.template.spec.containers[0].securityContext
- notExists:
path: spec.template.spec.dnsConfig
- notExists:
path: spec.template.spec.dnsPolicy
- notExists:
path: spec.template.spec.nodeSelector
- notExists:
@ -218,6 +220,14 @@ tests:
- "8.8.8.8"
- "8.8.4.4"
- it: Test dnsPolicy
set:
deployment.dnsPolicy: ClusterFirst
asserts:
- equal:
path: spec.template.spec.dnsPolicy
value: ClusterFirst
- it: Test nodeSelector
set:
deployment.nodeSelector: