Closed spiritNO1 closed 1 week ago
I find the reason, the cluster spec.apiEndpoint cannot with / at the end the following is true: apiEndpoint: https://XXX:6443 and the following is wrong: apiEndpoint: https://XXX:6443/
urlStr is parsed from cluster spec.apiEndpoint
Good for you! @spiritNO1 and thanks for the information.
cc @XiShanYongYe-Chang here to see if we need some enhancement.
Hi @spiritNO1, I tested it and found it to be okay.
@XiShanYongYe-Chang apiEndpoint of the cluster config should with '/' at the end
@XiShanYongYe-Chang apiEndpoint of the cluster config should with '/' at the end
apiEndpoint of the cluster config should with '/' at the end
Thanks, I get it.
Would you like to contribute?
@XiShanYongYe-Chang Very glad to
I am testing the aggregated api service using kubectl, the following command can work and return normal value: k get --raw /apis/cluster.karmada.io/v1alpha1/clusters/member1/proxy/api/v1/namespaces/test/pods/test_pod
and the following command can work too: k get --raw /apis/cluster.karmada.io/v1alpha1/clusters/*/proxy/api/v1/namespaces/test/pods/
but the following command can not work, and the error is "Error from server (NotFound): the server could not find the requested resource": k get --raw /apis/cluster.karmada.io/v1alpha1/clusters/*/proxy/api/v1/namespaces/test/pods/test_pod