-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when accessing member cluster by client-go using karmada-apiserver endpoint #2697
Comments
Hi @b2k4j, How do you use client-go, can you help share your demo? |
@XiShanYongYe-Chang
And the sample code is as follows:
|
Hi @b2k4j , I'm sorry, I don't know how to solve this problem. I think some parameters are not set correctly when constructing |
I also guess that it could be the parameter problem of karmada/pkg/karmadactl/util/factory.go Lines 58 to 59 in f68da6d
|
@XiShanYongYe-Chang |
@lonelyCZ |
Our E2E also constructs requests to access: karmada/test/e2e/aggregatedapi_test.go Line 199 in 5811aea
If there are new developments, we can talk more about it. |
@lonelyCZ @XiShanYongYe-Chang |
/close |
@b2k4j: Closing this issue. In response to this:
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. |
Gold to here that. By the way, can you share your fix? |
I'm sorry I do not know the cause of this problem, and it's still a mystery. I resolve this problem by using |
Ok. thanks~ |
I can access resource of member cluster using my serviceaccount in CLI:
But got such an error using client-go:
What do you think about this question?:
I'm sure all the configuration is fine because I can access the host cluster resources via client-go.
Environment:
The text was updated successfully, but these errors were encountered: