fix(api): skip OpenAPI post-processor for non-apps group versions by kvaps · Pull Request #2212 · cozystack/cozystack
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>
bot reviewed Mar 12, 2026
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
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
This reverts commit f906a0d. Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
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
kvaps
marked this pull request as ready for review
labels
Mar 13, 2026This was referenced
Mar 13, 2026kvaps added a commit that referenced this pull request
Mar 13, 2026kvaps added a commit that referenced this pull request
Mar 13, 2026This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters