mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
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>