Skip to content

bug: something is spamming bound CRD resolution for CachedResource/CachedResourceEndpointSlice #4216

Description

@gman0

Describe the bug

Logs filled with:

I0619 13:43:58.104639 1104199 apiextensions.go:199] "skipping local CRD because it came in via APIBindings or system CRDs" workspace="system:bound-crds" customresourcedefinition.workspace="system:bound-crds" customresourcedefinition.namespace="" customresourcedefinition.name="065a805e-3d20-450c-abd2-473341f487eb" customresourcedefinition.apiVersion=""
I0619 13:43:58.104655 1104199 apiextensions.go:199] "skipping local CRD because it came in via APIBindings or system CRDs" workspace="system:bound-crds" customresourcedefinition.workspace="system:bound-crds" customresourcedefinition.namespace="" customresourcedefinition.name="8deef0ec-ec47-473e-9a2c-c3c037168410" customresourcedefinition.apiVersion=""
I0619 13:43:58.104675 1104199 apiextensions.go:199] "skipping local CRD because it came in via APIBindings or system CRDs" workspace="system:bound-crds" customresourcedefinition.workspace="system:bound-crds" customresourcedefinition.namespace="" customresourcedefinition.name="065a805e-3d20-450c-abd2-473341f487eb" customresourcedefinition.apiVersion=""
I0619 13:43:58.104680 1104199 apiextensions.go:199] "skipping local CRD because it came in via APIBindings or system CRDs" workspace="system:bound-crds" customresourcedefinition.workspace="system:bound-crds" customresourcedefinition.namespace="" customresourcedefinition.name="8deef0ec-ec47-473e-9a2c-c3c037168410" customresourcedefinition.apiVersion=""
...
I0619 13:45:00.912209 1104199 apiextensions.go:159] "skipping APIBinding CRD because it came in via system CRDs" workspace="system:shard" customresourcedefinition.workspace="system:bound-crds" customresourcedefinition.namespace="" customresourcedefinition.name="8deef0ec-ec47-473e-9a2c-c3c037168410" customresourcedefinition.apiVersion=""

Steps To Reproduce

Run kcp start @ main (v0.31.2). Check logs. Bisecting when did this start happening.

Expected Behaviour

Whoever is doing those lookups, stop it pls.

Additional Context

Captured logs of kcp start &> kcp.log running for some minutes.

cat kcp.log | rg --only-matching 'skipping.*$' | rg --only-matching 'customresourcedefinition.name="([^"]*)"' | sort | uniq -c
     47 customresourcedefinition.name="065a805e-3d20-450c-abd2-473341f487eb"
     50 customresourcedefinition.name="8deef0ec-ec47-473e-9a2c-c3c037168410"

Inspecting CRDs:

./etcdctl.sh get --keys-only --from-key '""' | rg '065a805e-3d20-450c-abd2-473341f487eb|8deef0ec-ec47-473e-9a2c-c3c037168410'
/registry/apiextensions.k8s.io/customresourcedefinitions/system:bound-crds/065a805e-3d20-450c-abd2-473341f487eb
/registry/apiextensions.k8s.io/customresourcedefinitions/system:bound-crds/8deef0ec-ec47-473e-9a2c-c3c037168410

CRD 065a805e-3d20-450c-abd2-473341f487eb:

./etcdctl.sh get /registry/apiextensions.k8s.io/customresourcedefinitions/system:bound-crds/065a805e-3d20-450c-abd2-473341f487eb 2> /dev/null | tail -n+2 | jq | rg '"(group|plural)": "'
    "group": "cache.kcp.io",
      "plural": "cachedresources",
      "plural": "cachedresources",

CRD 8deef0ec-ec47-473e-9a2c-c3c037168410:

./etcdctl.sh get /registry/apiextensions.k8s.io/customresourcedefinitions/system:bound-crds/8deef0ec-ec47-473e-9a2c-c3c037168410 2> /dev/null | tail -n+2 | jq | rg '"(group|plural)": "'
    "group": "cache.kcp.io",
      "plural": "cachedresourceendpointslices",
      "plural": "cachedresourceendpointslices",

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type
No fields configured for issues without a type.

Projects

Status
In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions