Stefan McShane 3 лет назад
Родитель
Сommit
53af3c8dc6
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      dashboard/src/components/ProvisionerSettings.tsx

+ 4 - 4
dashboard/src/components/ProvisionerSettings.tsx

@@ -64,7 +64,7 @@ const ProvisionerForm: React.FC<Props> = ({
     var data: any = {
       project_id: currentProject.id,
       cloud_provider: "aws",
-      cloud_provider_credentials_id: "arn:aws:iam::833148400593:role/porter-manager",
+      cloud_provider_credentials_id: credentialId,
       cluster_settings: {
         cluster_name: clusterName,
         cluster_version: "v1.24.0",
@@ -75,13 +75,13 @@ const ProvisionerForm: React.FC<Props> = ({
             instance_type: "t3.medium",
             min_instances: 1,
             max_instances: 5,
-            node_group_type: "SYSTEM"
+            node_group_type: 1
           },
           {
             instance_type: machineType,
             min_instances: minInstances || 1,
             max_instances: maxInstances || 10,
-            node_group_type: "APPLICATION"
+            node_group_type: 3
           }
         ]
       }
@@ -104,7 +104,7 @@ const ProvisionerForm: React.FC<Props> = ({
 
   useEffect(() => {
     setIsReadOnly(
-      currentCluster.status === "UPDATING" ||
+      currentCluster.status === "UPDATING" || 
       currentCluster.status === "UPDATING_UNAVAILABLE"
     );
   }, []);