@cloud-ru/uikit-product-calculator 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 1.11.0 (2026-06-18)
7
+
8
+
9
+ ### Features
10
+
11
+ * **SITE-11186:** Update mk8s calculator ([5ec4597](https://github.com/cloud-ru-tech/uikit-product/commit/5ec4597964efd3813c70e65e9025a667aedfa3ae))
12
+
13
+
14
+
15
+
16
+
6
17
  # 1.10.0 (2026-06-15)
7
18
 
8
19
 
@@ -32,6 +32,16 @@ const NVIDIA_V100 = {
32
32
  label: 'NVIDIA V100',
33
33
  };
34
34
  const MODEL_ITEMS = [NVIDIA_A100_80GB, NVIDIA_H100_NVLINK_ITEM, NVIDIA_H100_NVLINK_ITEM_PCIe, NVIDIA_V100];
35
+ const DISK_TYPE_ITEMS = [
36
+ {
37
+ value: 'SSD',
38
+ label: 'SSD',
39
+ },
40
+ {
41
+ value: 'HDD',
42
+ label: 'HDD',
43
+ },
44
+ ];
35
45
  const guaranteedPartCards = [
36
46
  {
37
47
  value: GuaranteedPartItem[10],
@@ -165,7 +175,7 @@ exports.EVOLUTION_KUBERNETES_FORM_CONFIG = {
165
175
  ui: ['masterNode', 'workerNode', 'bindingPublicIpAddress'],
166
176
  controls: {
167
177
  masterNode: {
168
- ui: [['masterNodeConfig', 'masterNodeCount']],
178
+ ui: [['masterNodeConfig', 'masterNodeCount'], 'masterNodeGuaranteedPart'],
169
179
  type: components_1.CONTROL.Object,
170
180
  decoratorProps: {
171
181
  label: 'Мастер-узел',
@@ -189,6 +199,16 @@ exports.EVOLUTION_KUBERNETES_FORM_CONFIG = {
189
199
  label: 'Количество мастер-узлов',
190
200
  },
191
201
  },
202
+ masterNodeGuaranteedPart: {
203
+ type: components_1.CONTROL.Carousel,
204
+ accessorKey: 'masterNode.guaranteedPart',
205
+ defaultValue: guaranteedPartCards[0].value,
206
+ items: guaranteedPartCards,
207
+ decoratorProps: {
208
+ label: 'Гарантированная доля vCPU',
209
+ labelTooltip: 'Гарантированная доля vCPU определяет долю использования процессора, выделенную для виртуальной машины. Этот параметр известен также как переподписка vCPU (vCPU Overcommitment). При 100% гарантируется использование полной мощности виртуальных ядер процессора хоста виртуализации, выделенных виртуальной машине.',
210
+ },
211
+ },
192
212
  },
193
213
  },
194
214
  workerNode: {
@@ -206,6 +226,7 @@ exports.EVOLUTION_KUBERNETES_FORM_CONFIG = {
206
226
  'guaranteedPart',
207
227
  ['vCpuCount', 'ramAmount'],
208
228
  ['nodeCount'],
229
+ ['diskType'],
209
230
  ['diskSize'],
210
231
  ],
211
232
  decoratorProps: {
@@ -345,16 +366,29 @@ exports.EVOLUTION_KUBERNETES_FORM_CONFIG = {
345
366
  postfix: 'Шт',
346
367
  },
347
368
  },
369
+ diskType: {
370
+ type: components_1.CONTROL.SelectSingle,
371
+ accessorKey: 'workerNode.systemDisk.specification',
372
+ defaultValue: 'SSD',
373
+ items: DISK_TYPE_ITEMS,
374
+ decoratorProps: {
375
+ label: 'Тип диска',
376
+ },
377
+ uiProps: {
378
+ showClearButton: false,
379
+ searchable: false,
380
+ },
381
+ },
348
382
  diskSize: {
349
383
  type: components_1.CONTROL.Stepper,
350
- accessorKey: 'workerNode.diskSize',
384
+ accessorKey: 'workerNode.systemDisk.diskSpace',
351
385
  defaultValue: 10,
352
386
  decoratorProps: {
353
387
  label: 'Диск',
354
388
  },
355
389
  uiProps: {
356
390
  min: 10,
357
- max: 64,
391
+ max: 16384,
358
392
  postfix: 'ГБ',
359
393
  },
360
394
  },
@@ -29,6 +29,16 @@ const NVIDIA_V100 = {
29
29
  label: 'NVIDIA V100',
30
30
  };
31
31
  const MODEL_ITEMS = [NVIDIA_A100_80GB, NVIDIA_H100_NVLINK_ITEM, NVIDIA_H100_NVLINK_ITEM_PCIe, NVIDIA_V100];
32
+ const DISK_TYPE_ITEMS = [
33
+ {
34
+ value: 'SSD',
35
+ label: 'SSD',
36
+ },
37
+ {
38
+ value: 'HDD',
39
+ label: 'HDD',
40
+ },
41
+ ];
32
42
  const guaranteedPartCards = [
33
43
  {
34
44
  value: GuaranteedPartItem[10],
@@ -162,7 +172,7 @@ export const EVOLUTION_KUBERNETES_FORM_CONFIG = {
162
172
  ui: ['masterNode', 'workerNode', 'bindingPublicIpAddress'],
163
173
  controls: {
164
174
  masterNode: {
165
- ui: [['masterNodeConfig', 'masterNodeCount']],
175
+ ui: [['masterNodeConfig', 'masterNodeCount'], 'masterNodeGuaranteedPart'],
166
176
  type: CONTROL.Object,
167
177
  decoratorProps: {
168
178
  label: 'Мастер-узел',
@@ -186,6 +196,16 @@ export const EVOLUTION_KUBERNETES_FORM_CONFIG = {
186
196
  label: 'Количество мастер-узлов',
187
197
  },
188
198
  },
199
+ masterNodeGuaranteedPart: {
200
+ type: CONTROL.Carousel,
201
+ accessorKey: 'masterNode.guaranteedPart',
202
+ defaultValue: guaranteedPartCards[0].value,
203
+ items: guaranteedPartCards,
204
+ decoratorProps: {
205
+ label: 'Гарантированная доля vCPU',
206
+ labelTooltip: 'Гарантированная доля vCPU определяет долю использования процессора, выделенную для виртуальной машины. Этот параметр известен также как переподписка vCPU (vCPU Overcommitment). При 100% гарантируется использование полной мощности виртуальных ядер процессора хоста виртуализации, выделенных виртуальной машине.',
207
+ },
208
+ },
189
209
  },
190
210
  },
191
211
  workerNode: {
@@ -203,6 +223,7 @@ export const EVOLUTION_KUBERNETES_FORM_CONFIG = {
203
223
  'guaranteedPart',
204
224
  ['vCpuCount', 'ramAmount'],
205
225
  ['nodeCount'],
226
+ ['diskType'],
206
227
  ['diskSize'],
207
228
  ],
208
229
  decoratorProps: {
@@ -342,16 +363,29 @@ export const EVOLUTION_KUBERNETES_FORM_CONFIG = {
342
363
  postfix: 'Шт',
343
364
  },
344
365
  },
366
+ diskType: {
367
+ type: CONTROL.SelectSingle,
368
+ accessorKey: 'workerNode.systemDisk.specification',
369
+ defaultValue: 'SSD',
370
+ items: DISK_TYPE_ITEMS,
371
+ decoratorProps: {
372
+ label: 'Тип диска',
373
+ },
374
+ uiProps: {
375
+ showClearButton: false,
376
+ searchable: false,
377
+ },
378
+ },
345
379
  diskSize: {
346
380
  type: CONTROL.Stepper,
347
- accessorKey: 'workerNode.diskSize',
381
+ accessorKey: 'workerNode.systemDisk.diskSpace',
348
382
  defaultValue: 10,
349
383
  decoratorProps: {
350
384
  label: 'Диск',
351
385
  },
352
386
  uiProps: {
353
387
  min: 10,
354
- max: 64,
388
+ max: 16384,
355
389
  postfix: 'ГБ',
356
390
  },
357
391
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloud-ru/uikit-product-calculator",
3
3
  "title": "Calculator",
4
- "version": "1.10.0",
4
+ "version": "1.11.0",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.woff",
@@ -71,5 +71,5 @@
71
71
  "devDependencies": {
72
72
  "@types/lodash": "4.17.13"
73
73
  },
74
- "gitHead": "82c3199da1b9ed2c30651169a39e0848d2b8a519"
74
+ "gitHead": "8c920b084cb1b52a6dc025af99f70586076cfe0a"
75
75
  }
@@ -37,6 +37,17 @@ const NVIDIA_V100 = {
37
37
 
38
38
  const MODEL_ITEMS = [NVIDIA_A100_80GB, NVIDIA_H100_NVLINK_ITEM, NVIDIA_H100_NVLINK_ITEM_PCIe, NVIDIA_V100];
39
39
 
40
+ const DISK_TYPE_ITEMS = [
41
+ {
42
+ value: 'SSD',
43
+ label: 'SSD',
44
+ },
45
+ {
46
+ value: 'HDD',
47
+ label: 'HDD',
48
+ },
49
+ ];
50
+
40
51
  const guaranteedPartCards = [
41
52
  {
42
53
  value: GuaranteedPartItem[10],
@@ -176,7 +187,7 @@ export const EVOLUTION_KUBERNETES_FORM_CONFIG: FormConfig = {
176
187
  ui: ['masterNode', 'workerNode', 'bindingPublicIpAddress'],
177
188
  controls: {
178
189
  masterNode: {
179
- ui: [['masterNodeConfig', 'masterNodeCount']],
190
+ ui: [['masterNodeConfig', 'masterNodeCount'], 'masterNodeGuaranteedPart'],
180
191
  type: CONTROL.Object,
181
192
  decoratorProps: {
182
193
  label: 'Мастер-узел',
@@ -200,6 +211,17 @@ export const EVOLUTION_KUBERNETES_FORM_CONFIG: FormConfig = {
200
211
  label: 'Количество мастер-узлов',
201
212
  },
202
213
  },
214
+ masterNodeGuaranteedPart: {
215
+ type: CONTROL.Carousel,
216
+ accessorKey: 'masterNode.guaranteedPart',
217
+ defaultValue: guaranteedPartCards[0].value,
218
+ items: guaranteedPartCards,
219
+ decoratorProps: {
220
+ label: 'Гарантированная доля vCPU',
221
+ labelTooltip:
222
+ 'Гарантированная доля vCPU определяет долю использования процессора, выделенную для виртуальной машины. Этот параметр известен также как переподписка vCPU (vCPU Overcommitment). При 100% гарантируется использование полной мощности виртуальных ядер процессора хоста виртуализации, выделенных виртуальной машине.',
223
+ },
224
+ },
203
225
  },
204
226
  },
205
227
  workerNode: {
@@ -217,6 +239,7 @@ export const EVOLUTION_KUBERNETES_FORM_CONFIG: FormConfig = {
217
239
  'guaranteedPart',
218
240
  ['vCpuCount', 'ramAmount'],
219
241
  ['nodeCount'],
242
+ ['diskType'],
220
243
  ['diskSize'],
221
244
  ],
222
245
  decoratorProps: {
@@ -358,16 +381,29 @@ export const EVOLUTION_KUBERNETES_FORM_CONFIG: FormConfig = {
358
381
  postfix: 'Шт',
359
382
  },
360
383
  },
384
+ diskType: {
385
+ type: CONTROL.SelectSingle,
386
+ accessorKey: 'workerNode.systemDisk.specification',
387
+ defaultValue: 'SSD',
388
+ items: DISK_TYPE_ITEMS,
389
+ decoratorProps: {
390
+ label: 'Тип диска',
391
+ },
392
+ uiProps: {
393
+ showClearButton: false,
394
+ searchable: false,
395
+ },
396
+ },
361
397
  diskSize: {
362
398
  type: CONTROL.Stepper,
363
- accessorKey: 'workerNode.diskSize',
399
+ accessorKey: 'workerNode.systemDisk.diskSpace',
364
400
  defaultValue: 10,
365
401
  decoratorProps: {
366
402
  label: 'Диск',
367
403
  },
368
404
  uiProps: {
369
405
  min: 10,
370
- max: 64,
406
+ max: 16384,
371
407
  postfix: 'ГБ',
372
408
  },
373
409
  },