apache / apache/cloudstack

UI: Add project selection in Create Kubernetes Cluster form (projectid supported by createKubernetesCluster API)

Đang mở
#13,646 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
component:UI
Ngôn ngữ chính
Java
Star
3.1k
Fork
1.4k
Merge trung bình
6 ngày 19 giờ
Pull request đã merge (30 ngày)
32

Mô tả

### The required feature described as a wish

ISSUE TYPE
* Improvement Request

COMPONENT NAME
~~~
UI, Kubernetes Service (CKS)
~~~

CLOUDSTACK VERSION
~~~
4.22.1.0
~~~

SUMMARY

The createKubernetesCluster API in 4.22.1.0 supports the `projectid` parameter
("Deploy cluster for the project"), and the API response includes `project` and
`projectid` fields:
https://cloudstack.apache.org/api/apidocs-4.22/apis/createKubernetesCluster.html

However, the "Add Kubernetes Cluster" form in the UI has no field to select a
project. Currently, deploying a CKS cluster into a project can only be
achieved either by calling the API directly (passing projectid), or by
switching the UI view to the specific project before creating the cluster.

There is no way to choose the target project directly from the cluster
creation form itself, unlike other resource creation flows in the UI. This is
inconsistent and inconvenient, especially for admins managing multiple
projects.

STEPS TO REPRODUCE
~~~
1. Log in to the CloudStack 4.22.1 UI Default View
2. Navigate to Compute > Kubernetes > Create Kubernetes Cluster
3. Observe there is no field/dropdown to select a project for the cluster
4. Compare with the createKubernetesCluster API, which accepts "projectid"
~~~

EXPECTED RESULTS
~~~
The "Add Kubernetes Cluster" form should include a project dropdown
(populated via listProjects), so the cluster and its resources are created
under the selected project — equivalent to passing projectid to the
createKubernetesCluster API.
~~~

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu từ biểu mẫu Add Kubernetes Cluster trong CloudStack UI và xem lại tài liệu API createKubernetesCluster, đặc biệt là projectid và các trường project trong phản hồi của API. Theo dõi cách các biểu mẫu UI khác điền danh sách project bằng listProjects. Hoàn thành khi biểu mẫu cung cấp một danh sách thả xuống project và truyền projectid đã chọn khi tạo cluster.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
kubernetes
Lĩnh vực
frontend
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
68/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.