From 3c17fe25344c809aa760b86db243ae2a71dd9812 Mon Sep 17 00:00:00 2001 From: samaradel Date: Tue, 5 Nov 2024 11:50:24 +0200 Subject: [PATCH 1/7] - Add myCelium IP in deployment - Add MyCelium IP column in workers table --- .../components/manage_caprover_worker_dialog.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/playground/src/components/manage_caprover_worker_dialog.vue b/packages/playground/src/components/manage_caprover_worker_dialog.vue index b7e60070a0..f981bef78d 100644 --- a/packages/playground/src/components/manage_caprover_worker_dialog.vue +++ b/packages/playground/src/components/manage_caprover_worker_dialog.vue @@ -17,7 +17,15 @@ { title: 'PLACEHOLDER', key: 'data-table-select' }, { title: 'Contract ID', key: 'contractId' }, { title: 'Name', key: 'name' }, - { title: 'Public IPv4', key: 'publicIP.ip' }, + { + title: 'Networks', + key: 'networks', + sortable: false, + children: [ + { title: 'Public IPv4', key: 'publicIP.ip', sortable: false }, + { title: 'Mycelium IP', key: 'myceliumIP', sortable: false }, + ], + }, { title: 'CPU(vCores)', key: 'capacity.cpu' }, { title: 'Memory(MB)', key: 'capacity.memory' }, { title: 'Disk(GB)', key: 'disk' }, @@ -31,6 +39,10 @@ {{ data.indexOf(item) + 1 }} + + @@ -135,6 +147,7 @@ async function deploy(layout: any) { region: worker.value.selectionDetails!.location?.region, planetary: true, publicIpv4: true, + mycelium: true, envs: [ { key: "SWM_NODE_MODE", value: "worker" }, { key: "PUBLIC_KEY", value: props.master.env.PUBLIC_KEY }, From 10cd3f8a97483589f440acbc945c18cf8c2beaa0 Mon Sep 17 00:00:00 2001 From: samaradel Date: Tue, 5 Nov 2024 12:03:15 +0200 Subject: [PATCH 2/7] Modify myCelium to be optional while deployment --- .../playground/src/components/manage_caprover_worker_dialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playground/src/components/manage_caprover_worker_dialog.vue b/packages/playground/src/components/manage_caprover_worker_dialog.vue index f981bef78d..8ba6876aa7 100644 --- a/packages/playground/src/components/manage_caprover_worker_dialog.vue +++ b/packages/playground/src/components/manage_caprover_worker_dialog.vue @@ -147,7 +147,7 @@ async function deploy(layout: any) { region: worker.value.selectionDetails!.location?.region, planetary: true, publicIpv4: true, - mycelium: true, + mycelium: worker.value.mycelium, envs: [ { key: "SWM_NODE_MODE", value: "worker" }, { key: "PUBLIC_KEY", value: props.master.env.PUBLIC_KEY }, From 54e89e223cd1d339dc67cb9d04c751568821a407 Mon Sep 17 00:00:00 2001 From: Samar Adel Date: Wed, 6 Nov 2024 15:10:37 +0200 Subject: [PATCH 3/7] Update manage_caprover_worker_dialog.vue --- .../playground/src/components/manage_caprover_worker_dialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playground/src/components/manage_caprover_worker_dialog.vue b/packages/playground/src/components/manage_caprover_worker_dialog.vue index 8ba6876aa7..100538bc13 100644 --- a/packages/playground/src/components/manage_caprover_worker_dialog.vue +++ b/packages/playground/src/components/manage_caprover_worker_dialog.vue @@ -40,7 +40,7 @@ + + + @@ -93,6 +109,9 @@