2
0
Эх сурвалжийг харах

allow azure instance type change (#4188)

d-g-town 2 жил өмнө
parent
commit
5e89bb6f99

+ 1 - 1
dashboard/src/components/AzureProvisionerSettings.tsx

@@ -408,7 +408,7 @@ const AzureProvisionerSettings: React.FC<Props> = (props) => {
             <SelectRow
               options={regionFilteredMachineTypeOptions}
               width="350px"
-              disabled={true}
+              disabled={isReadOnly}
               value={machineType}
               scrollBuffer={true}
               dropdownMaxHeight="240px"

+ 2 - 0
dashboard/src/components/azureUtils.ts

@@ -38,6 +38,8 @@ export const azureSupportedMachineTypes = (
 
 // Retrieve updated list of supported regions by running the following command: az vm list-skus --all --output table | grep <INSTANCE_TYPE> | grep 1,2,3 | grep None | awk '{print "\047" tolower($2) "\047"}' | paste -s -d, -
 // last updated 12/19/2020
+//
+// NOTE: Any new instance types must be added to the cluster-control-plane preflight checks until we are able to dynamically handle new instances.
 const AzureMachineTypeOptions: MachineTypeOption[] = [
   {
     value: "Standard_B2als_v2",