@@ -39,7 +39,12 @@ export class NetworkCommand extends BaseCommand {
39
39
40
40
static get DEPLOY_FLAGS_LIST ( ) {
41
41
return [
42
+ flags . apiPermissionProperties ,
43
+ flags . app ,
42
44
flags . applicationEnv ,
45
+ flags . applicationProperties ,
46
+ flags . bootstrapProperties ,
47
+ flags . chainId ,
43
48
flags . chartDirectory ,
44
49
flags . deployHederaExplorer ,
45
50
flags . deployMirrorNode ,
@@ -48,11 +53,13 @@ export class NetworkCommand extends BaseCommand {
48
53
flags . fstChartVersion ,
49
54
flags . hederaExplorerTlsHostName ,
50
55
flags . hederaExplorerTlsLoadBalancerIp ,
56
+ flags . log4j2Xml ,
51
57
flags . namespace ,
52
58
flags . nodeIDs ,
53
59
flags . profileFile ,
54
60
flags . profileName ,
55
61
flags . releaseTag ,
62
+ flags . settingTxt ,
56
63
flags . tlsClusterIssuerType ,
57
64
flags . valuesFile
58
65
]
@@ -98,7 +105,7 @@ export class NetworkCommand extends BaseCommand {
98
105
}
99
106
100
107
const profileName = this . configManager . getFlag ( flags . profileName )
101
- this . profileValuesFile = await this . profileManager . prepareValuesForFstChart ( profileName , config . applicationEnv )
108
+ this . profileValuesFile = await this . profileManager . prepareValuesForFstChart ( profileName )
102
109
if ( this . profileValuesFile ) {
103
110
valuesArg += this . prepareValuesFiles ( this . profileValuesFile )
104
111
}
@@ -127,10 +134,17 @@ export class NetworkCommand extends BaseCommand {
127
134
128
135
// disable the prompts that we don't want to prompt the user for
129
136
prompts . disablePrompts ( [
137
+ flags . apiPermissionProperties ,
138
+ flags . app ,
130
139
flags . applicationEnv ,
140
+ flags . applicationProperties ,
141
+ flags . bootstrapProperties ,
142
+ flags . chainId ,
131
143
flags . deployHederaExplorer ,
132
144
flags . deployMirrorNode ,
133
- flags . hederaExplorerTlsLoadBalancerIp
145
+ flags . hederaExplorerTlsLoadBalancerIp ,
146
+ flags . log4j2Xml ,
147
+ flags . settingTxt
134
148
] )
135
149
136
150
await prompts . execute ( task , this . configManager , NetworkCommand . DEPLOY_FLAGS_LIST )
@@ -196,32 +210,34 @@ export class NetworkCommand extends BaseCommand {
196
210
{
197
211
title : 'Initialize' ,
198
212
task : async ( ctx , task ) => {
199
- ctx . config = await self . prepareConfig ( task , argv )
213
+ ctx . config = /** @type { NetworkDeployConfigClass } **/ await self . prepareConfig ( task , argv )
200
214
}
201
215
} ,
202
216
{
203
217
title : `Install chart '${ constants . FULLSTACK_DEPLOYMENT_CHART } '` ,
204
218
task : async ( ctx , _ ) => {
205
- if ( await self . chartManager . isChartInstalled ( ctx . config . namespace , constants . FULLSTACK_DEPLOYMENT_CHART ) ) {
206
- await self . chartManager . uninstall ( ctx . config . namespace , constants . FULLSTACK_DEPLOYMENT_CHART )
219
+ const config = /** @type {NetworkDeployConfigClass } **/ ctx . config
220
+ if ( await self . chartManager . isChartInstalled ( config . namespace , constants . FULLSTACK_DEPLOYMENT_CHART ) ) {
221
+ await self . chartManager . uninstall ( config . namespace , constants . FULLSTACK_DEPLOYMENT_CHART )
207
222
}
208
223
209
224
await this . chartManager . install (
210
- ctx . config . namespace ,
225
+ config . namespace ,
211
226
constants . FULLSTACK_DEPLOYMENT_CHART ,
212
- ctx . config . chartPath ,
213
- ctx . config . fstChartVersion ,
214
- ctx . config . valuesArg )
227
+ config . chartPath ,
228
+ config . fstChartVersion ,
229
+ config . valuesArg )
215
230
}
216
231
} ,
217
232
{
218
233
title : 'Check node pods are running' ,
219
234
task :
220
235
async ( ctx , task ) => {
221
236
const subTasks = [ ]
237
+ const config = /** @type {NetworkDeployConfigClass } **/ ctx . config
222
238
223
239
// nodes
224
- for ( const nodeId of ctx . config . nodeIds ) {
240
+ for ( const nodeId of config . nodeIds ) {
225
241
subTasks . push ( {
226
242
title : `Check Node: ${ chalk . yellow ( nodeId ) } ` ,
227
243
task : ( ) =>
@@ -246,9 +262,10 @@ export class NetworkCommand extends BaseCommand {
246
262
task :
247
263
async ( ctx , task ) => {
248
264
const subTasks = [ ]
265
+ const config = /** @type {NetworkDeployConfigClass } **/ ctx . config
249
266
250
267
// HAProxy
251
- for ( const nodeId of ctx . config . nodeIds ) {
268
+ for ( const nodeId of config . nodeIds ) {
252
269
subTasks . push ( {
253
270
title : `Check HAProxy for: ${ chalk . yellow ( nodeId ) } ` ,
254
271
task : ( ) =>
@@ -259,7 +276,7 @@ export class NetworkCommand extends BaseCommand {
259
276
}
260
277
261
278
// Envoy Proxy
262
- for ( const nodeId of ctx . config . nodeIds ) {
279
+ for ( const nodeId of config . nodeIds ) {
263
280
subTasks . push ( {
264
281
title : `Check Envoy Proxy for: ${ chalk . yellow ( nodeId ) } ` ,
265
282
task : ( ) =>
@@ -418,12 +435,13 @@ export class NetworkCommand extends BaseCommand {
418
435
{
419
436
title : `Upgrade chart '${ constants . FULLSTACK_DEPLOYMENT_CHART } '` ,
420
437
task : async ( ctx , _ ) => {
438
+ const config = ctx . config
421
439
await this . chartManager . upgrade (
422
- ctx . config . namespace ,
440
+ config . namespace ,
423
441
constants . FULLSTACK_DEPLOYMENT_CHART ,
424
- ctx . config . chartPath ,
425
- ctx . config . valuesArg ,
426
- ctx . config . fstChartVersion
442
+ config . chartPath ,
443
+ config . valuesArg ,
444
+ config . fstChartVersion
427
445
)
428
446
}
429
447
} ,
0 commit comments