mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-21 12:13:55 +09:00
test(vertical-pod-autoscaler): check maxSkew and whenUnsatisfiable of the spread
The test only looked at the topology key and the label selector, so a change to maxSkew or to whenUnsatisfiable went unnoticed. Assisted-by: LLM Signed-off-by: Yan Bondarenko <202671653+yankawai@users.noreply.github.com>
This commit is contained in:
1 parent
34766ff0b5
commit
70e1e8b145
1 file changed
+6
@@ -252,6 +252,12 @@ tests:
|
||||
- equal:
|
||||
path: spec.template.spec.topologySpreadConstraints[0].topologyKey
|
||||
value: kubernetes.io/hostname
|
||||
- equal:
|
||||
path: spec.template.spec.topologySpreadConstraints[0].maxSkew
|
||||
value: 1
|
||||
- equal:
|
||||
path: spec.template.spec.topologySpreadConstraints[0].whenUnsatisfiable
|
||||
value: ScheduleAnyway
|
||||
- equal:
|
||||
path: spec.template.spec.topologySpreadConstraints[0].labelSelector.matchLabels
|
||||
value:
|
||||
|
||||
Reference in new issue
Block a user