API/UI: Support custom-constrained and custom-unconstrained offerings when creating a CKS cluster
- 主要語言
- Java
- 星號
- 3.1k
- 分支
- 1.4k
- 平均合併
- 6 天 19 小時
- 30 天內合併 PR
- 32
描述
### problem
Currently, users are unable to select the custom-constrained and custom-unconstrained offerings from the UI
And also it's not even possible from the API as we are excluding the custom offerings for cks cluster
```
localcloud) 🐱 > create kubernetescluster name=test zoneid=fb0bd189-c018-4897-8a2d-7f9b59b204da hypervisor=KVM kubernetesversionid=515fb765-38f3-4ca1-bd6d-18816b64418b serviceofferingid=7ebfd3b9-1b0e-44ca-b9ec-4ebeff9df06e size=1
🙈 Error: (HTTP 530, error code 9999) Given service offering ID: Service offering {"id":13,"name":"Large Instance-unconstrained","uuid":"7ebfd3b9-1b0e-44ca-b9ec-4ebeff9df06e"}. for WORKER nodes is not suitable for the Kubernetes cluster version KubernetesSupportedVersion {"id":1,"name":"cks-csi","semanticVersion":"1.33.1","uuid":"515fb765-38f3-4ca1-bd6d-18816b64418b"} - Custom service offerings are not supported for creating clusters, service offering ID: 7ebfd3b9-1b0e-44ca-b9ec-4ebeff9df06e
(localcloud) 🐱 > create kubernetescluster name=test zoneid=fb0bd189-c018-4897-8a2d-7f9b59b204da hypervisor=KVM kubernetesversionid=515fb765-38f3-4ca1-bd6d-18816b64418b
serviceofferingid=bdf374a9-c55b-46dc-b5c1-c8056beb8d10 size=1
🙈 Error: (HTTP 530, error code 9999) Given service offering ID: Service offering {"id":14,"name":"Large-Instance-constrained","uuid":"bdf374a9-c55b-46dc-b5c1-c8056beb8d10"}. for WORKER nodes is not suitable for the Kubernetes cluster version KubernetesSupportedVersion {"id":1,"name":"cks-csi","semanticVersion":"1.33.1","uuid":"515fb765-38f3-4ca1-bd6d-18816b64418b"} - Custom service offerings are not supported for creating clusters, service offering ID: bdf374a9-c55b-46dc-b5c1-c8056beb8d10
```
### versions
ACS 4.21, 4.20.1
### The steps to reproduce the bug
1. Navigate to service offering > compute offering > create a custom-constrained and custom-unconstrained offering.
Create a custom -constrained offering od 2 cpu and 2048 ram which is the minimum requirement for a cks cluster
2. Navigate to compute > kubernetes > create cks cluster
3. The custom-constrained and custom-unconstrained are listed
...
### What to do about it?
User should be able to select the custom-constrained and custom-unconstrained offerings for a cks cluster.
As it would be beneficial for the end user to specify the CPU and memory during CKS creation
A similar box related to deploy instance should be displayed during cks creation
貢獻指南
研究方向
首先透過 API 和 UI 追蹤 CKS 叢集的建立流程,重點關注 custom-constrained 和 custom-unconstrained 服務方案在哪個環節被排除。使用報告中描述的自訂方案重現問題;完成條件是兩個方案都能在 CKS 建立流程中被選取,並被 API 接受。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- api, frontend
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100