@@ -602,10 +602,12 @@ export class NetworkCommand extends BaseCommand {
602
602
title : `Install chart '${ constants . SOLO_DEPLOYMENT_CHART } '` ,
603
603
task : async ctx => {
604
604
const config = ctx . config ;
605
+ // TODO: @Lenin , run for each cluster
605
606
if ( await self . chartManager . isChartInstalled ( config . namespace , constants . SOLO_DEPLOYMENT_CHART ) ) {
606
607
await self . chartManager . uninstall ( config . namespace , constants . SOLO_DEPLOYMENT_CHART ) ;
607
608
}
608
609
610
+ // TODO: @Lenin , run for each cluster
609
611
await this . chartManager . install (
610
612
config . namespace ,
611
613
constants . SOLO_DEPLOYMENT_CHART ,
@@ -622,9 +624,11 @@ export class NetworkCommand extends BaseCommand {
622
624
const config = ctx . config ;
623
625
624
626
// nodes
627
+ // TODO: @Lenin , needs to use config.consensusNodes
625
628
for ( const nodeAlias of config . nodeAliases ) {
626
629
subTasks . push ( {
627
630
title : `Check Node: ${ chalk . yellow ( nodeAlias ) } ` ,
631
+ // TODO: @Lenin , needs to use config.consensusNodes for both node name and context
628
632
task : async ( ) =>
629
633
await self . k8Factory
630
634
. default ( )
@@ -654,9 +658,11 @@ export class NetworkCommand extends BaseCommand {
654
658
const config = ctx . config ;
655
659
656
660
// HAProxy
661
+ // TODO: @Lenin , needs to use config.consensusNodes
657
662
for ( const nodeAlias of config . nodeAliases ) {
658
663
subTasks . push ( {
659
664
title : `Check HAProxy for: ${ chalk . yellow ( nodeAlias ) } ` ,
665
+ // TODO: @Lenin , needs to use config.consensusNodes for both node name and context
660
666
task : async ( ) =>
661
667
await self . k8Factory
662
668
. default ( )
@@ -671,9 +677,11 @@ export class NetworkCommand extends BaseCommand {
671
677
}
672
678
673
679
// Envoy Proxy
680
+ // TODO: @Lenin , needs to use config.consensusNodes
674
681
for ( const nodeAlias of config . nodeAliases ) {
675
682
subTasks . push ( {
676
683
title : `Check Envoy Proxy for: ${ chalk . yellow ( nodeAlias ) } ` ,
684
+ // TODO: @Lenin , needs to use config.consensusNodes for both node name and context
677
685
task : async ( ) =>
678
686
await self . k8Factory
679
687
. default ( )
@@ -704,6 +712,7 @@ export class NetworkCommand extends BaseCommand {
704
712
// minio
705
713
subTasks . push ( {
706
714
title : 'Check MinIO' ,
715
+ // TODO: @Lenin , needs to run for each cluster
707
716
task : async ctx =>
708
717
await self . k8Factory
709
718
. default ( )
@@ -1001,6 +1010,7 @@ export class NetworkCommand extends BaseCommand {
1001
1010
} = ctx ;
1002
1011
const cluster = this . remoteConfigManager . currentCluster ;
1003
1012
1013
+ // TODO: @Lenin , we can update this to use config.consensusNodes and provide the correct cluster per node
1004
1014
await this . remoteConfigManager . modify ( async remoteConfig => {
1005
1015
for ( const nodeAlias of nodeAliases ) {
1006
1016
remoteConfig . components . add (
0 commit comments