mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-21 20:23:39 +09:00
Expose the existing linstor-scheduler-extender sidecar as a ClusterIP Service and configure cozystack-scheduler to call it during the scheduling cycle. Pods with both a SchedulingClass and LINSTOR PVCs now get storage-locality-aware placement. - Add extender Service (port 8099) for linstor-scheduler - Patch vendored deployment to label pods for Service selector - Bump cozystack-scheduler to v0.3.0 (configurable extenders) - Add "linstor" PackageSource variant with extender values - Default variant ships without extender for non-LINSTOR clusters - Select linstor variant in system bundle - Add helm-unittest tests for both packages Ref: #2328 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
27 lines
677 B
YAML
27 lines
677 B
YAML
suite: scheduler configmap tests
|
|
|
|
templates:
|
|
- charts/cozy-cozystack-scheduler/templates/configmap.yaml
|
|
|
|
tests:
|
|
- it: renders extenders when configured
|
|
values:
|
|
- ../values-linstor.yaml
|
|
asserts:
|
|
- isKind:
|
|
of: ConfigMap
|
|
- matchRegex:
|
|
path: data["scheduler-config.yaml"]
|
|
pattern: "urlPrefix: http://linstor-scheduler-extender"
|
|
- matchRegex:
|
|
path: data["scheduler-config.yaml"]
|
|
pattern: "ignorable: true"
|
|
|
|
- it: omits extenders by default
|
|
asserts:
|
|
- isKind:
|
|
of: ConfigMap
|
|
- notMatchRegex:
|
|
path: data["scheduler-config.yaml"]
|
|
pattern: "extenders:"
|