Przeglądaj źródła

small gpu fe patch (#4342)

d-g-town 2 lat temu
rodzic
commit
b6c25dc1ba

+ 6 - 1
dashboard/src/main/home/infrastructure-dashboard/shared/NodeGroups.tsx

@@ -218,7 +218,12 @@ const NodeGroups: React.FC<Props> = ({ availableMachineTypes }) => {
             onClick={() => {
               append({
                 nodeGroupType: "CUSTOM",
-                instanceType: "g4dn.xlarge",
+                instanceType: availableMachineTypes
+                  .filter((t) => t.isGPU)
+                  .map((t) => ({
+                    value: t.name,
+                    label: t.displayName,
+                  }))[0].value,
                 minInstances: 1,
                 maxInstances: 2,
               });