Skip to content

docs: add a troubleshooting page for dangling schemas in an APIExport - #189

Open
2mind wants to merge 1 commit into
kcp-dev:mainfrom
2mind:docs/troubleshooting-dangling-schema
Open

2mind wants to merge 1 commit into
kcp-dev:mainfrom
2mind:docs/troubleshooting-dangling-schema

Conversation

@2mind

@2mind 2mind commented Sep 28, 2026 •

Copy link
Copy Markdown

Summary

Adds a troubleshooting page for the case described in #188: an APIExport referencing an APIResourceSchema that does not exist.

How to find it — the export itself reports nothing about the dangling entry; the only signal is the consumers' APIBinding (APIExportValid=False, APIResourceSchema "<name>" not found). The page shows how to match that message against the export's schema list, and to use the export's events to tell an agent-managed entry from a hand-written one.

How to recover:

  • if the resource should exist — fix the reason the ARS was never created (PublishedResource.status.resourceSchemaName, agent logs); a resource whose CRD cannot be projected leaves the whole export untouched;
  • if the resource is not needed — remove the entry from spec.resources (v1alpha2) / spec.latestResourceSchemas (older kcp). Documented as a metadata-only change: no ARS and no synced objects are deleted, only the API stops being served, and the consumers' bindings return to APIExportValid=True on their next reconciliation;
  • and the caveat that this does not stick while a PublishedResource for the same group/resource still exists, because the next reconcile adds the agent's own schema name back (and drops the manually added entry for the same group/resource — Warning RemovingResourceSchemas).

Verified against kcp v0.32.x with api-syncagent v0.7.0: with the dangling entry the binding shows Invalid APIExport ... not found, removing the entry restores APIExportValid=True/Ready=True, and the entry does not come back while nothing manages that resource.

What Type of PR Is This?

/kind documentation

Related Issue(s)

Contributes to #188

Release Notes

Document how to find and remove an APIExport resource entry that references a missing APIResourceSchema

An APIExport whose schema list references a non-existent APIResourceSchema
reports nothing on the export itself; only the consumers' APIBindings show
"Invalid APIExport ... not found", which leaves the owner without a hint about
the entry to remove. Write down how to find it and how to remove it safely.

Signed-off-by: Nikita Aboltin <aboltin.nikita@rwb.ru>
@kcp-ci-bot kcp-ci-bot added dco-signoff: yes Indicates the PR's author has signed the DCO. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Sep 28, 2026
@kcp-ci-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign embik for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kcp-ci-bot kcp-ci-bot added do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 28, 2026
@kcp-ci-bot

Copy link
Copy Markdown
Contributor

Hi @2mind. Thanks for your PR.

I'm waiting for a kcp-dev member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kcp-ci-bot kcp-ci-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Sep 28, 2026
@2mind

2mind commented Sep 28, 2026

Copy link
Copy Markdown
Author

/kind documentation

@kcp-ci-bot kcp-ci-bot added kind/documentation Categorizes issue or PR as related to documentation. and removed do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Sep 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. kind/documentation Categorizes issue or PR as related to documentation. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants