Apply suggestions from code review
Co-authored-by: Marco Ebert <marco_ebert@icloud.com>
This commit is contained in:
parent
4632e9b91f
commit
288a2083c3
1 changed files with 21 additions and 17 deletions
|
@ -99,7 +99,9 @@ tests:
|
||||||
- it: should create a DaemonSet with affinity if `controller.affinity` is set
|
- it: should create a DaemonSet with affinity if `controller.affinity` is set
|
||||||
set:
|
set:
|
||||||
controller.kind: DaemonSet
|
controller.kind: DaemonSet
|
||||||
controller.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution:
|
controller.affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: app.kubernetes.io/name
|
- key: app.kubernetes.io/name
|
||||||
|
@ -117,8 +119,10 @@ tests:
|
||||||
topologyKey: "kubernetes.io/hostname"
|
topologyKey: "kubernetes.io/hostname"
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution
|
path: spec.template.spec.affinity
|
||||||
value:
|
value:
|
||||||
|
podAntiAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: app.kubernetes.io/name
|
- key: app.kubernetes.io/name
|
||||||
|
|
Loading…
Reference in a new issue