mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-05 11:37:31 +09:00
The class status and the license copier run in cozystack-controller behind --enable-gpu, which the chart passes from gpu.enabled. The status controller is off without the flag, since it caches every Node. The copier always runs: without the flag it deletes every copy, so a token does not stay in tenant namespaces after GPU features are switched off, and clears the free counts and conditions the stopped status controller would otherwise leave stale. License Secrets are watched on the metadata-only Secret cache the CA projection already owns. The manager's own Secret cache is scoped by label to wildcard replicas, and a watch on it would never see a hoster's Secret. The envtest suite drives both controllers through their watches, since a mis-scoped watch fails without an error. No RBAC rule is added: the controller already reads every kind, holds every verb on cozystack.io and the cluster-wide Secret write. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>