karmada icon indicating copy to clipboard operation
karmada copied to clipboard

karmada-search cannot query single namespace information

Open luoMonkeyKing opened this issue 2 years ago • 1 comments

What happened: When I query a single namespace information through karmada-search, I can't find it, but when I query all namespaces, I can query the namespace information.

kubectl get --raw /apis/search.karmada.io/v1alpha1/search/cache/api/v1/namespaces/nihao123

Anything else we need to know?: karmada-searche logs:

E0720 02:28:00.980820       1 cache.go:110] Failed to get /v1, Resource=namespaces resource(nihao123/nihao123) from cluster(member1)'s informer cache: namespaces "nihao123" not found
E0720 02:28:00.980891       1 cache.go:110] Failed to get /v1, Resource=namespaces resource(nihao123/nihao123) from cluster(member2)'s informer cache: namespaces "nihao123" not found

Environment:

  • Karmada version: 1.2.0
  • kubectl-karmada or karmadactl version (the result of kubectl-karmada version or karmadactl version): 1.2.0

luoMonkeyKing avatar Jul 20 '22 03:07 luoMonkeyKing

Thanks for you pointing out this bug.

This bug seems we don't correctly resolve the namespace resource, the namespace of the namespace resource should be empty.

/assign @luoMonkeyKing

XiShanYongYe-Chang avatar Jul 20 '22 03:07 XiShanYongYe-Chang

/close

XiShanYongYe-Chang avatar Apr 24 '23 07:04 XiShanYongYe-Chang

@XiShanYongYe-Chang: Closing this issue.

In response to this:

/close

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/test-infra repository.

karmada-bot avatar Apr 24 '23 07:04 karmada-bot