fix(api): skip OpenAPI post-processor for non-apps group versions by kvaps · Pull Request #2212 · cozystack/cozystack

@kvaps @claude

The OpenAPI PostProcessSpec callback is invoked for every group-version
(apps, core, version, etc.), but the Application schema cloning logic
only applies to apps.cozystack.io. When called for other GVs the base
Application schemas are absent, causing a spurious error log on every
API server start.

Return early instead of erroring when the base schemas are not found.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>

gemini-code-assist[bot]

bot reviewed Mar 12, 2026

@kvaps @claude

When dependencies are not ready the reconciler returned without
requeueing, relying solely on watch events to re-trigger. If a watch
event was missed (controller restart, race condition, dependency already
ready before watch setup), the package would stay stuck in
DependenciesNotReady forever.

Add RequeueAfter: 30s so dependencies are periodically rechecked.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>

@kvaps kvaps changed the title fix(api): skip OpenAPI post-processor for non-apps group versions fix(api,operator): fix OpenAPI post-processor and package dependency requeue

Mar 12, 2026

@kvaps

This reverts commit f906a0d.

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>

@kvaps kvaps changed the title fix(api,operator): fix OpenAPI post-processor and package dependency requeue fix(api): skip OpenAPI post-processor for non-apps group versions

Mar 12, 2026

@kvaps kvaps marked this pull request as ready for review

March 13, 2026 00:00

@dosubot dosubot bot added size:XS

This PR changes 0-9 lines, ignoring generated files.

bug

Something isn't working

labels

Mar 13, 2026

coderabbitai[bot]

This was referenced

Mar 13, 2026

kvaps added a commit that referenced this pull request

Mar 13, 2026
…apps group versions (#2216)

# Description
Backport of #2212 to `release-1.0`.

kvaps added a commit that referenced this pull request

Mar 13, 2026
…apps group versions (#2217)

# Description
Backport of #2212 to `release-1.1`.