@@ -252,7 +252,7 @@ export class NetworkCommand extends BaseCommand {
252
252
} ,
253
253
{
254
254
title : 'Prepare staging directory' ,
255
- task : async ( ctx , parentTask ) => {
255
+ task : ( ctx , parentTask ) => {
256
256
const subTasks = [
257
257
{
258
258
title : 'Copy Gossip keys to staging' ,
@@ -282,7 +282,7 @@ export class NetworkCommand extends BaseCommand {
282
282
} ,
283
283
{
284
284
title : 'Copy node keys to secrets' ,
285
- task : async ( ctx , parentTask ) => {
285
+ task : ( ctx , parentTask ) => {
286
286
const config = /** @type {NetworkDeployConfigClass } **/ ctx . config
287
287
288
288
const subTasks = self . platformInstaller . copyNodeKeys ( config . stagingDir , config . nodeAliases )
@@ -313,92 +313,92 @@ export class NetworkCommand extends BaseCommand {
313
313
{
314
314
title : 'Check node pods are running' ,
315
315
task :
316
- async ( ctx , task ) => {
317
- const subTasks = [ ]
318
- const config = /** @type {NetworkDeployConfigClass } **/ ctx . config
319
-
320
- // nodes
321
- for ( const nodeAlias of config . nodeAliases ) {
322
- subTasks . push ( {
323
- title : `Check Node: ${ chalk . yellow ( nodeAlias ) } ` ,
324
- task : async ( ) =>
325
- await self . k8 . waitForPods ( [ constants . POD_PHASE_RUNNING ] , [
326
- 'fullstack.hedera.com/type=network-node' ,
316
+ ( ctx , task ) => {
317
+ const subTasks = [ ]
318
+ const config = /** @type {NetworkDeployConfigClass } **/ ctx . config
319
+
320
+ // nodes
321
+ for ( const nodeAlias of config . nodeAliases ) {
322
+ subTasks . push ( {
323
+ title : `Check Node: ${ chalk . yellow ( nodeAlias ) } ` ,
324
+ task : async ( ) =>
325
+ await self . k8 . waitForPods ( [ constants . POD_PHASE_RUNNING ] , [
326
+ 'fullstack.hedera.com/type=network-node' ,
327
327
`fullstack.hedera.com/node-name=${ nodeAlias } `
328
- ] , 1 , 60 * 15 , 1000 ) // timeout 15 minutes
329
- } )
330
- }
331
-
332
- // set up the sub-tasks
333
- return task . newListr ( subTasks , {
334
- concurrent : false , // no need to run concurrently since if one node is up, the rest should be up by then
335
- rendererOptions : {
336
- collapseSubtasks : false
337
- }
338
- } )
339
- }
328
+ ] , 1 , 60 * 15 , 1000 ) // timeout 15 minutes
329
+ } )
330
+ }
331
+
332
+ // set up the sub-tasks
333
+ return task . newListr ( subTasks , {
334
+ concurrent : false , // no need to run concurrently since if one node is up, the rest should be up by then
335
+ rendererOptions : {
336
+ collapseSubtasks : false
337
+ }
338
+ } )
339
+ }
340
340
} ,
341
341
{
342
342
title : 'Check proxy pods are running' ,
343
343
task :
344
- async ( ctx , task ) => {
345
- const subTasks = [ ]
346
- const config = /** @type {NetworkDeployConfigClass } **/ ctx . config
347
-
348
- // HAProxy
349
- for ( const nodeAlias of config . nodeAliases ) {
350
- subTasks . push ( {
351
- title : `Check HAProxy for: ${ chalk . yellow ( nodeAlias ) } ` ,
352
- task : async ( ) =>
353
- await self . k8 . waitForPods ( [ constants . POD_PHASE_RUNNING ] , [
354
- 'fullstack.hedera.com/type=haproxy'
355
- ] , 1 , 60 * 15 , 1000 ) // timeout 15 minutes
356
- } )
357
- }
358
-
359
- // Envoy Proxy
360
- for ( const nodeAlias of config . nodeAliases ) {
361
- subTasks . push ( {
362
- title : `Check Envoy Proxy for: ${ chalk . yellow ( nodeAlias ) } ` ,
363
- task : async ( ) =>
364
- await self . k8 . waitForPods ( [ constants . POD_PHASE_RUNNING ] , [
365
- 'fullstack.hedera.com/type=envoy-proxy'
366
- ] , 1 , 60 * 15 , 1000 ) // timeout 15 minutes
367
- } )
368
- }
369
-
370
- // set up the sub-tasks
371
- return task . newListr ( subTasks , {
372
- concurrent : true ,
373
- rendererOptions : {
374
- collapseSubtasks : false
375
- }
376
- } )
377
- }
344
+ ( ctx , task ) => {
345
+ const subTasks = [ ]
346
+ const config = /** @type {NetworkDeployConfigClass } **/ ctx . config
347
+
348
+ // HAProxy
349
+ for ( const nodeAlias of config . nodeAliases ) {
350
+ subTasks . push ( {
351
+ title : `Check HAProxy for: ${ chalk . yellow ( nodeAlias ) } ` ,
352
+ task : async ( ) =>
353
+ await self . k8 . waitForPods ( [ constants . POD_PHASE_RUNNING ] , [
354
+ 'fullstack.hedera.com/type=haproxy'
355
+ ] , 1 , 60 * 15 , 1000 ) // timeout 15 minutes
356
+ } )
357
+ }
358
+
359
+ // Envoy Proxy
360
+ for ( const nodeAlias of config . nodeAliases ) {
361
+ subTasks . push ( {
362
+ title : `Check Envoy Proxy for: ${ chalk . yellow ( nodeAlias ) } ` ,
363
+ task : async ( ) =>
364
+ await self . k8 . waitForPods ( [ constants . POD_PHASE_RUNNING ] , [
365
+ 'fullstack.hedera.com/type=envoy-proxy'
366
+ ] , 1 , 60 * 15 , 1000 ) // timeout 15 minutes
367
+ } )
368
+ }
369
+
370
+ // set up the sub-tasks
371
+ return task . newListr ( subTasks , {
372
+ concurrent : true ,
373
+ rendererOptions : {
374
+ collapseSubtasks : false
375
+ }
376
+ } )
377
+ }
378
378
} ,
379
379
{
380
380
title : 'Check auxiliary pods are ready' ,
381
381
task :
382
- async ( ctx , task ) => {
383
- const subTasks = [ ]
384
-
385
- // minio
386
- subTasks . push ( {
387
- title : 'Check MinIO' ,
388
- task : async ( ) =>
389
- await self . k8 . waitForPodReady ( [
390
- 'v1.min.io/tenant=minio'
391
- ] , 1 , 60 * 5 , 1000 ) // timeout 5 minutes
392
- } )
393
-
394
- // set up the sub-tasks
395
- return task . newListr ( subTasks , {
396
- concurrent : false , // no need to run concurrently since if one node is up, the rest should be up by then
397
- rendererOptions : {
398
- collapseSubtasks : false
399
- }
400
- } )
401
- }
382
+ ( ctx , task ) => {
383
+ const subTasks = [ ]
384
+
385
+ // minio
386
+ subTasks . push ( {
387
+ title : 'Check MinIO' ,
388
+ task : async ( ) =>
389
+ await self . k8 . waitForPodReady ( [
390
+ 'v1.min.io/tenant=minio'
391
+ ] , 1 , 60 * 5 , 1000 ) // timeout 5 minutes
392
+ } )
393
+
394
+ // set up the sub-tasks
395
+ return task . newListr ( subTasks , {
396
+ concurrent : false , // no need to run concurrently since if one node is up, the rest should be up by then
397
+ rendererOptions : {
398
+ collapseSubtasks : false
399
+ }
400
+ } )
401
+ }
402
402
}
403
403
] , {
404
404
concurrent : false ,
0 commit comments