Просмотр исходного кода

Merge pull request #182 from porter-dev/beta.3.integration-frontend

eks_name bodyparam added to destroycluster
abelanger5 5 лет назад
Родитель
Сommit
5b9af6f6b9

+ 1 - 1
dashboard/src/main/home/modals/UpdateClusterModal.tsx

@@ -43,7 +43,7 @@ export default class UpdateClusterModal extends Component<PropsType, StateType>
         // Handle destroying infra we've provisioned
         if (currentCluster.infra_id) {
           console.log('destroying provisioned infra...');
-          api.destroyCluster('<token>', {}, { 
+          api.destroyCluster('<token>', { eks_name: currentCluster.name }, { 
             project_id: currentProject.id,
             infra_id: currentCluster.infra_id,
           }, (err: any, res: any) => {

+ 1 - 1
dashboard/src/main/home/modals/UpdateProjectModal.tsx

@@ -69,7 +69,7 @@ export default class UpdateProjectModal extends Component<PropsType, StateType>
           // Handle destroying infra we've provisioned
           if (cluster.infra_id) {
             console.log('destroying provisioned infra...', cluster.infra_id);
-            api.destroyCluster('<token>', {}, { 
+            api.destroyCluster('<token>', { eks_name: cluster.name }, { 
               project_id: currentProject.id,
               infra_id: cluster.infra_id,
             }, (err: any, res: any) => {

+ 1 - 0
dashboard/src/shared/api.tsx

@@ -277,6 +277,7 @@ const getInfra = baseApi<{
 });
 
 const destroyCluster = baseApi<{
+  eks_name: string,
 }, {
   project_id: number,
   infra_id: number,