From 9f9825e96cdd8f9cae5e6decbbda7eb0f230a5cd Mon Sep 17 00:00:00 2001 From: samaea <32162601+samaea@users.noreply.github.com> Date: Mon, 9 Oct 2023 22:29:41 +0000 Subject: [PATCH] Initial commit. --- bicep/aksagentpool.bicep | 2 +- bicep/main.bicep | 5 +++-- helper/src/components/clusterTab.js | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bicep/aksagentpool.bicep b/bicep/aksagentpool.bicep index 6fba74382..2bb86a851 100644 --- a/bicep/aksagentpool.bicep +++ b/bicep/aksagentpool.bicep @@ -40,7 +40,7 @@ param podSubnetID string = '' @allowed(['Linux','Windows']) param osType string -@allowed(['Ubuntu','Windows2019','Windows2022']) +@allowed(['AzureLinux','Ubuntu','Windows2019','Windows2022']) param osSKU string @description('Assign a public IP per node') diff --git a/bicep/main.bicep b/bicep/main.bicep index b7b8af46c..ca945b20f 100644 --- a/bicep/main.bicep +++ b/bicep/main.bicep @@ -1165,6 +1165,7 @@ var systemPoolBase = { count: agentCount mode: 'System' osType: 'Linux' + osSku: osSKU=='AzureLinux' ? osSKU : 'Ubuntu' maxPods: 30 type: 'VirtualMachineScaleSets' vnetSubnetID: !empty(aksSubnetId) ? aksSubnetId : null @@ -1369,8 +1370,8 @@ output aksOidcIssuerUrl string = oidcIssuer ? aks.properties.oidcIssuerProfile.i @description('The User Node pool OS') param osType string = 'Linux' -@allowed(['Ubuntu','Windows2019','Windows2022']) -@description('The User Node pool OS SKU') +@allowed(['AzureLinux','Ubuntu','Windows2019','Windows2022']) +@description('User Node pool OS SKU') param osSKU string = 'Ubuntu' var poolName = osType == 'Linux' ? nodePoolName : take(nodePoolName, 6) diff --git a/helper/src/components/clusterTab.js b/helper/src/components/clusterTab.js index 3f59ca1cd..2f7371fa1 100644 --- a/helper/src/components/clusterTab.js +++ b/helper/src/components/clusterTab.js @@ -127,6 +127,7 @@ export default function ({ defaults, tabValues, updateFn, featureFlag, invalidAr onChange={(ev, { key }) => updateFn("osSKU", key)} options={[ { key: 'Ubuntu', text: 'Ubuntu', disabled:cluster.osType!=='Linux' }, + { key: 'AzureLinux', text: 'Azure Linux', disabled:cluster.osType!=='Linux' }, { key: 'Windows2022', text: 'Windows Server 2022', disabled:cluster.osType!=='Windows' } ]} styles={{ dropdown: { width: "100%", minWidth: "200px" } }}