From 552e2483905937e7bea16d87e71439050a37138a Mon Sep 17 00:00:00 2001 From: noasaunders219 <117283483+noasaunders219@users.noreply.github.com> Date: Mon, 18 Sep 2023 12:06:19 +0300 Subject: [PATCH 1/3] advanced vm filtering added --- .../ocean/aksV2/schemas/ocean-vmSizes.yaml | 51 ++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml b/api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml index 776256e90..7e461999d 100644 --- a/api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml +++ b/api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml @@ -56,4 +56,53 @@ properties: Vm sizes belonging to a series from the list will not be available for scaling. items: type: string - example: [ "Bs", "Da v4" ] \ No newline at end of file + example: [ "Bs", "Da v4" ] + minData: + description: | + Minimum number of data disks available. + type: integer + minimum: 1 + example: 1 + minGpu: + description: | + Minimum number of GPUs available. + type: number + format: double + minimum: 0.0 + maximum: 8.0 + example: 1.0 + maxGpu: + description: | + Maximum number of GPUs available. + type: number + format: double + minimum: 0.0 + maximum: 8.0 + example: 2.0 + diskPerformance: + type: string + description: | + The type of the disk performance. + enum: [ Standard, Premium ] + example: Standard + acceleratedNetworking: + type: string + description: | + The type of the disk performance. + enum: [ Enabled, Disabled ] + example: Enabled + minNICs: + description: | + Minimum number of network interfaces. + type: integer + minimum: 1 + maximum: 16 + example: 4 + vmTypes: + type: array + description: | + The filtered vm types will belong to one of the vm types from this list. + items: + type: string + enum: [ "generalPurpose", "memoryOptimized", "computeOptimized", "highPerformanceCompute", "storageOptimized", "GPU" ] + example: [ "memoryOptimized" ] \ No newline at end of file From 01b702fb91780da88f32afc2d94b439607a00960 Mon Sep 17 00:00:00 2001 From: noasaunders219 <117283483+noasaunders219@users.noreply.github.com> Date: Tue, 19 Sep 2023 15:54:40 +0300 Subject: [PATCH 2/3] advanced vm filtering added --- api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml b/api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml index 7e461999d..767c27130 100644 --- a/api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml +++ b/api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml @@ -62,6 +62,7 @@ properties: Minimum number of data disks available. type: integer minimum: 1 + maximum: 64 example: 1 minGpu: description: | @@ -82,13 +83,13 @@ properties: diskPerformance: type: string description: | - The type of the disk performance. + The filtered vm sizes will support at least one of the classes from this list. enum: [ Standard, Premium ] example: Standard acceleratedNetworking: type: string description: | - The type of the disk performance. + In case acceleratedNetworking is set to Enabled, accelerated networking applies only to the VM that enables it. enum: [ Enabled, Disabled ] example: Enabled minNICs: From 9acb43aca9ae252abf41c921bd0a84b204283fcb Mon Sep 17 00:00:00 2001 From: noasaunders219 <117283483+noasaunders219@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:00:59 +0300 Subject: [PATCH 3/3] advanced vm filtering added --- api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml b/api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml index 767c27130..830550443 100644 --- a/api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml +++ b/api/services/ocean/aksV2/schemas/ocean-vmSizes.yaml @@ -84,13 +84,13 @@ properties: type: string description: | The filtered vm sizes will support at least one of the classes from this list. - enum: [ Standard, Premium ] + enum: [ "Standard", "Premium" ] example: Standard acceleratedNetworking: type: string description: | In case acceleratedNetworking is set to Enabled, accelerated networking applies only to the VM that enables it. - enum: [ Enabled, Disabled ] + enum: [ "Enabled", "Disabled" ] example: Enabled minNICs: description: |