Invalid API request of persistentvolumeclaims in member cluster environment
Created by: xuliwenwenwen
Describe the bug
Invalid API request of persistentvolumeclaims in member cluster environment.
https://console.kubesphere.io/api/v1/namespaces/test-12/persistentvolumeclaims/hellos-cxzc-0
Versions used(KubeSphere/Kubernetes) KubeSphere: v3.2.0-89+77d14fe4dce0e8 Kubernetes: (If KubeSphere installer used, you can skip this)
Environment Multi-cluster environment
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior The correct API should be as below:
- https://console.kubesphere.io/api/v1/namespaces/test-12/persistentvolumeclaims/hellos-cxzc-0
+ https://console.kubesphere.io/api/clusters/rohan/v1/namespaces/test-12/persistentvolumeclaims/hellos-cxzc-0