Files
cozystack/api
Mattia Eleuteri 0132457260 feat(apps): expose schedulingClass across all managed applications
Placement could only be set per tenant, so two applications of the
same tenant could not be kept together, or apart, unless each had a
tenant to itself. With a class per application and the scheduling-class
Pod label, a SchedulingClass name can serve as a co-affinity group: a
database and the virtual machine that uses it can be kept in the same
region without pinning which one.

The field is capped at 63 characters. A SchedulingClass name may be up
to 253, but the webhook writes the class into a Pod label, and this is
the first source of the class the apiserver has not already validated
as a label value; capping it is cheap while the field is new and a
breaking change once released. A class created with a longer name must
still not break Pod admission, so for it only the label is left out.

kubernetes-nodes gets no field: the ownership walk from a worker Pod
reaches the parent Kubernetes application, never the pool, so a class
set on a pool would be accepted and silently ignored.

Placement per replica role (primary or standby of a clustered
database) is out of scope: the operator assigns the role after
election, once the webhook has already seen the pod.

Assisted-by: LLM
Signed-off-by: Mattia Eleuteri <mattia@hidora.io>
2026-11-23 08:05:06 +01:00
..