feature: enhance error message on not having bound the apiexport yet
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go, kubernetes
- Domain
- api, distributed-systems
Research direction
Start at the syncagent startup path that produces the client-go reflector error shown in the issue, then trace how a missing APIBinding is surfaced. Done means that an absent APIBinding yields a clear hint about the kcp workspaces while preserving the existing synchronization behavior; the payload names no repository file or test.
Written by the indexing model from the issue text.
Description
Feature Description
The scenario
- kcp is setup properly in a k8s cluster with proper workspaces
- a provider cluster exists with syncagent installed and proper publishedresource, rbac, ...
On starting the syncagent I get this error message
E1024 05:55:57.471055 1 reflector.go:158] "Unhandled Error" err="k8s.io/client-go@v0.31.6/tools/cache/reflector.go:243: Failed to watch myorg.com/v1, Kind=MyService: failed to list myorg.com/v1, Kind=MyService: the server could not find the requested resource" logger="UnhandledError"
The reason for this is not in the provider cluster, everyting is fine. The problem is that no APIBinding exist in kcp yet. After ignoring the error message and creating the APIBindings in the provider and consumer workspaces everything worked fine.
Proposed Solution
For avoiding long debugging sessions to find the issue in the provider cluster it would be great to have a hint in the error message that the CRD cannot be read in the kcp workspaces (which will exist after the APIBindings are created).
Alternative Solutions
No response
Want to contribute?
- I would like to work on this issue.
Additional Context
No response
- Dominant language
- Go
- Stars
- 25
- Forks
- 30
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from kcp-dev/api-syncagent
-
kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
kcp-dev/api-syncagent#163 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
kcp-dev/api-syncagent#161 ·
-
kind/feature
Difficulty 4/5 3-5 days Newbie friendliness 48/100
kcp-dev/api-syncagent#186 · 1 reaction ·
-
kind/bug
kcp-dev/api-syncagent#182 · 1 comment · 1 assignee ·
-
bug: finalizer "syncagent.kcp.io/cleanup" on related resources block deletion of primary object Openkind/bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
kcp-dev/api-syncagent#172 · 1 comment · 1 reaction ·
All issues in kcp-dev/api-syncagent
Similar issues
-
kind/bug needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 72/100
matrixorigin/matrixone#29223 ·
-
needs-acceptance wg/data-plane-networking
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vllm-project/semantic-router#4024 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
alexgorbatchev/dotfiles#107 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100