Apply suggestions from code review

Co-authored-by: Marco Ebert <marco_ebert@icloud.com>
This commit is contained in:
TheRealNoob 2024-06-12 12:08:57 -07:00 committed by GitHub
parent 4632e9b91f
commit 288a2083c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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