UI: Add project selection in Create Kubernetes Cluster form (projectid supported by createKubernetesCluster API)
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 1.4k
- 平均合并
- 6 天 19 小时
- 30 天内合并 PR
- 32
描述
### 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.
~~~
贡献指南
调研方向
从 CloudStack UI 中的 Add Kubernetes Cluster 表单开始,查看 createKubernetesCluster API 文档,尤其关注 projectid 以及其响应中的项目字段。追踪其他 UI 表单如何使用 listProjects 填充项目。完成的标准是:表单提供项目下拉框,并在创建集群时传递所选的 projectid。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- kubernetes
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 68/100