Files
cozystack/packages/system/cozystack-scheduler/tests/configmap_test.yaml
T
Timofei LarkinandClaude Opus 4.6 37229aa0ac feat(scheduler): storage-aware scheduling
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>
2026-04-13 17:15:09 +03:00

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:"