mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-03 18:47:04 +09:00
The GPU reconciler always runs, so GPU finalizers and usage records are handled on every cluster, including ones that later turn GPU off; --enable-gpu adds placement and the KubeVirt watches. GPU admission webhooks are registered only with it, because asking the manager for its webhook server starts it and the server needs a serving certificate. The hoster's resource-name list and raw-name policy come in as flags and are written to the settings ConfigMap for the admission policies to read. GPU admission waits for the binder only seconds, so every replica has to answer from warm caches: with GPU enabled, the informers it needs start before the manager on every replica rather than at the first admission, readiness waits for exactly those to sync, and the leader releases its lease on shutdown so a rollout does not leave bind requests unanswered for a lease duration. The ConfigMap cache holds only the settings object. Non-positive grace periods are refused, since a zero attachment grace would clear every attachment before its VMI appears. Signed-off-by: Aleksei Sviridkin <f@lex.la> Assisted-by: LLM