Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh committed Oct 30, 2023
1 parent eeb5289 commit 87fac83
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions charts/posthog/tests/_topologySpreadConstraints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,21 @@ tests:
asserts:
- hasDocuments:
count: 1
- contains:
path: spec.template.spec.topologySpreadConstraints[0]
- equal:
path: spec.template.spec.topologySpreadConstraints[0]
value:
topologyKey: topology.kubernetes.io/zone
maxSkew: 1
whenUnsatisfiable: DoNotSchedule
path: spec.template.spec.topologySpreadConstraints[0].topologyKey
value: topology.kubernetes.io/zone
- equal:
path: spec.template.spec.topologySpreadConstraints[1]
value:
topologyKey: topology.kubernetes.io/hostname
maxSkew: 3
whenUnsatisfiable: ScheduleAnyway
path: spec.template.spec.topologySpreadConstraints[0].maxSkew
value: 1
- equal:
path: spec.template.spec.topologySpreadConstraints[0].whenUnsatisfiable
value: DoNotSchedule
- equal:
path: spec.template.spec.topologySpreadConstraints[1].topologyKey
value: kubernetes.io/hostname
- equal:
path: spec.template.spec.topologySpreadConstraints[1].maxSkew
value: 3
- equal:
path: spec.template.spec.topologySpreadConstraints[1].whenUnsatisfiable
value: ScheduleAnyway

0 comments on commit 87fac83

Please sign in to comment.