File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -343,6 +343,7 @@ export class NodeCommandTasks {
343
343
? 'Please attach JVM debugger now. Sleeping for 1 hour, hit ctrl-c once debugging is complete.'
344
344
: '' ;
345
345
const title = `Check network pod: ${ chalk . yellow ( nodeAlias ) } ${ chalk . red ( reminder ) } ` ;
346
+ const context = helpers . extractContextFromConsensusNodes ( nodeAlias , ctx . config . consensusNodes ) ;
346
347
347
348
const subTask = async ( ctx : any , task : ListrTaskWrapper < any , any , any > ) => {
348
349
if ( enableDebugger ) {
@@ -355,6 +356,10 @@ export class NodeCommandTasks {
355
356
title ,
356
357
i ,
357
358
status ,
359
+ undefined ,
360
+ undefined ,
361
+ undefined ,
362
+ context ,
358
363
) ;
359
364
} ;
360
365
@@ -379,6 +384,7 @@ export class NodeCommandTasks {
379
384
maxAttempts = constants . NETWORK_NODE_ACTIVE_MAX_ATTEMPTS ,
380
385
delay = constants . NETWORK_NODE_ACTIVE_DELAY ,
381
386
timeout = constants . NETWORK_NODE_ACTIVE_TIMEOUT ,
387
+ context ?: string ,
382
388
) : Promise < PodRef > {
383
389
nodeAlias = nodeAlias . trim ( ) as NodeAlias ;
384
390
const podName = Templates . renderNetworkPodName ( nodeAlias ) ;
@@ -397,7 +403,7 @@ export class NodeCommandTasks {
397
403
398
404
try {
399
405
const response = await this . k8Factory
400
- . default ( )
406
+ . getK8 ( context )
401
407
. containers ( )
402
408
. readByRef ( ContainerRef . of ( podRef , constants . ROOT_CONTAINER ) )
403
409
. execContainer ( [
You can’t perform that action at this time.
0 commit comments