mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-10 14:34:58 +09:00
The binder writes finalizers and status on GPU classes, devices and nodes, deletes template devices with their VMI, and deletes the unscheduled VMI of a device that must leave its node. The create right on GPU devices is for the template devices made on behalf of a VMI. The settings ConfigMap is the only ConfigMap the controller writes, so its rights live in a Role in cozy-system rather than the ClusterRole: get, update and patch are scoped to that object by name, and create, which RBAC cannot scope by name, is scoped by the namespace. With --metrics-secure the metrics endpoint authenticates and authorizes each scrape through TokenReview and SubjectAccessReview, so the controller needs create on both for the GPU metrics to be scraped. Signed-off-by: Aleksei Sviridkin <f@lex.la> Assisted-by: LLM