Unable to get the node label list of member cluster
Created by: LinuxSuRen
Describe the bug Having a multi-cluster environment. The node label list is empty when users try to create a Pipeline with graphic mode. The Pipeline belongs to a member cluster. As you can see below, the API request got a 404 response.
According to my tests. The following API request is ok:
http://ip:port/kapis/clusters/member/devops.kubesphere.io/v1alpha2/devops/solo-projecthcbrh/jenkins/labelsdashboard/labelsData
The incorrect API is: http://ip:port/kapis/devops.kubesphere.io/v1alpha2/devops/solo-projecthcbrh/jenkins/labelsdashboard/labelsData
/area devops /priority high
Versions used(KubeSphere/Kubernetes)
KubeSphere: v3.1.0
The host and member cluster are all v3.1.0
.
Environment This is not an environmental issue.
To Reproduce Steps to reproduce the behavior:
- Have two cluster, the host cluster named
host
; the member cluster namedmember
- Create a Pipeline on a member cluster
- Select the node label on the Pipeline graphic editing page
- No label items
Expected behavior The node labels list cannot be empty on the member cluster.