File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -646,14 +646,18 @@ export class NetworkCommand extends BaseCommand {
646
646
} ,
647
647
{
648
648
title : 'Check if cluster setup chart is installed' ,
649
- task : async ( ) => {
650
- // TODO @Lenin , need to use the config.contexts for each isChartInstalled call
651
- const isChartInstalled = await this . chartManager . isChartInstalled ( null , constants . SOLO_CLUSTER_SETUP_CHART ) ;
652
- if ( ! isChartInstalled ) {
653
- // TODO @Lenin , update error message
654
- throw new SoloError (
655
- `Chart ${ constants . SOLO_CLUSTER_SETUP_CHART } is not installed. Run 'solo cluster setup'` ,
649
+ task : async ctx => {
650
+ for ( const context of ctx . config . contexts ) {
651
+ const isChartInstalled = await this . chartManager . isChartInstalled (
652
+ null ,
653
+ constants . SOLO_CLUSTER_SETUP_CHART ,
654
+ context ,
656
655
) ;
656
+ if ( ! isChartInstalled ) {
657
+ throw new SoloError (
658
+ `Chart ${ constants . SOLO_CLUSTER_SETUP_CHART } is not installed for cluster: ${ context } . Run 'solo cluster setup'` ,
659
+ ) ;
660
+ }
657
661
}
658
662
} ,
659
663
} ,
You can’t perform that action at this time.
0 commit comments