Conversation
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>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
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 Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/kind documentation |
Summary
Adds a troubleshooting page for the case described in #188: an
APIExportreferencing anAPIResourceSchemathat 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:
PublishedResource.status.resourceSchemaName, agent logs); a resource whose CRD cannot be projected leaves the whole export untouched;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 toAPIExportValid=Trueon their next reconciliation;PublishedResourcefor 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 restoresAPIExportValid=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