mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
cozystack-api built its resource config from every ApplicationDefinition
and returned the first error, so one definition with an unparseable
release.cozystack.io/* timeout annotation stopped the API for every
tenant. The definition controller rolls cozystack-api when those
annotations change, so the bad definition also triggered the failing
rollout. Since a connected repository can install definitions, this is
no longer limited to an operator's own mistake.
Leave such a definition out of the served kinds and log it, the same way
a definition that loses its kind to an older one is left out. An
openAPISchema that is not valid JSON is rejected at the same point:
the OpenAPI post-processors would otherwise fail the whole spec on it.
Refs: #4976
Assisted-by: LLM
Signed-off-by: Adham Kiwan <adhamkiwan@outlook.com>
(cherry picked from commit 918a60462e)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>