Files
cozystack/api
Mattia Eleuteri 4034f9eeb9 feat(tenant): let an administrator list the classes applications may pick
An application's spec.schedulingClass replaces the tenant class for
its pods, and the tenant class is the administrator's placement
constraint. Without a list of permitted alternatives, anyone who can
create an application in the tenant can move it onto any class the
cluster defines.

allowedSchedulingClasses names those alternatives and defaults to
empty, so per-application placement stays off until an administrator
opts in. The tenant chart writes it to a namespace annotation, the
place the admission policy and the lineage webhook can read it from.
A parent that constrains placement passes its list down unchanged, so
a child tenant cannot allow a class its parent does not, the same way
it cannot replace the parent's class.

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