Files
cozystack/pkg
Adham Kiwan bdb3130fae fix(api): skip an invalid ApplicationDefinition instead of failing startup
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>
2026-11-25 10:49:44 +00:00
..