@@ -63,11 +63,8 @@ export class NodeCommand extends BaseCommand {
63
63
64
64
static get SETUP_FLAGS_LIST ( ) {
65
65
return [
66
- flags . apiPermissionProperties , // TODO move to `network deploy`
67
66
flags . app ,
68
67
flags . appConfig ,
69
- flags . applicationProperties , // TODO move to `network deploy`
70
- flags . bootstrapProperties , // TODO move to `network deploy`
71
68
flags . cacheDir ,
72
69
flags . chainId ,
73
70
flags . devMode ,
@@ -76,11 +73,9 @@ export class NodeCommand extends BaseCommand {
76
73
flags . generateTlsKeys ,
77
74
flags . keyFormat ,
78
75
flags . localBuildPath ,
79
- flags . log4j2Xml , // TODO move to `network deploy`
80
76
flags . namespace ,
81
77
flags . nodeIDs ,
82
- flags . releaseTag ,
83
- flags . settingTxt // TODO move to `network deploy`
78
+ flags . releaseTag
84
79
]
85
80
}
86
81
@@ -122,9 +117,6 @@ export class NodeCommand extends BaseCommand {
122
117
123
118
static get ADD_FLAGS_LIST ( ) {
124
119
return [
125
- flags . apiPermissionProperties ,
126
- flags . applicationProperties ,
127
- flags . bootstrapProperties ,
128
120
flags . cacheDir ,
129
121
flags . chainId ,
130
122
flags . chartDirectory ,
@@ -134,11 +126,9 @@ export class NodeCommand extends BaseCommand {
134
126
flags . generateGossipKeys ,
135
127
flags . generateTlsKeys ,
136
128
flags . keyFormat ,
137
- flags . log4j2Xml ,
138
129
flags . namespace ,
139
130
flags . nodeIDs ,
140
- flags . releaseTag ,
141
- flags . settingTxt
131
+ flags . releaseTag
142
132
]
143
133
}
144
134
@@ -423,7 +413,6 @@ export class NodeCommand extends BaseCommand {
423
413
async initializeSetup ( config , configManager , k8 ) {
424
414
// compute other config parameters
425
415
config . releasePrefix = Templates . prepareReleasePrefix ( config . releaseTag )
426
- config . buildZipFile = `${ config . cacheDir } /${ config . releasePrefix } /build-${ config . releaseTag } .zip`
427
416
config . keysDir = path . join ( validatePath ( config . cacheDir ) , 'keys' )
428
417
config . stagingDir = Templates . renderStagingDir (
429
418
configManager . getFlag ( flags . cacheDir ) ,
@@ -531,28 +520,20 @@ export class NodeCommand extends BaseCommand {
531
520
532
521
// disable the prompts that we don't want to prompt the user for
533
522
prompts . disablePrompts ( [
534
- flags . apiPermissionProperties ,
535
523
flags . app ,
536
524
flags . appConfig ,
537
- flags . applicationProperties ,
538
- flags . bootstrapProperties ,
539
525
flags . devMode ,
540
526
flags . force ,
541
- flags . localBuildPath ,
542
- flags . log4j2Xml ,
543
- flags . settingTxt
527
+ flags . localBuildPath
544
528
] )
545
529
546
530
await prompts . execute ( task , self . configManager , NodeCommand . SETUP_FLAGS_LIST )
547
531
548
532
/**
549
533
* @typedef {Object } NodeSetupConfigClass
550
534
* -- flags --
551
- * @property {string } apiPermissionProperties
552
535
* @property {string } app
553
536
* @property {string } appConfig
554
- * @property {string } applicationProperties
555
- * @property {string } bootstrapProperties
556
537
* @property {string } cacheDir
557
538
* @property {string } chainId
558
539
* @property {boolean } devMode
@@ -561,13 +542,10 @@ export class NodeCommand extends BaseCommand {
561
542
* @property {boolean } generateTlsKeys
562
543
* @property {string } keyFormat
563
544
* @property {string } localBuildPath
564
- * @property {string } log4j2Xml
565
545
* @property {string } namespace
566
546
* @property {string } nodeIDs
567
547
* @property {string } releaseTag
568
- * @property {string } settingTxt
569
548
* -- extra args --
570
- * @property {string } buildZipFile
571
549
* @property {Date } curDate
572
550
* @property {string } keysDir
573
551
* @property {string[] } nodeIds
@@ -585,7 +563,6 @@ export class NodeCommand extends BaseCommand {
585
563
// create a config object for subsequent steps
586
564
const config = /** @type {NodeSetupConfigClass } **/ this . getConfig ( NodeCommand . SETUP_CONFIGS_NAME , NodeCommand . SETUP_FLAGS_LIST ,
587
565
[
588
- 'buildZipFile' ,
589
566
'curDate' ,
590
567
'keysDir' ,
591
568
'nodeIds' ,
@@ -693,7 +670,6 @@ export class NodeCommand extends BaseCommand {
693
670
task : ( ) =>
694
671
self . platformInstaller . taskInstall (
695
672
podName ,
696
- ctx . config . buildZipFile ,
697
673
ctx . config . stagingDir ,
698
674
ctx . config . nodeIds ,
699
675
ctx . config . keyFormat ,
@@ -1045,7 +1021,6 @@ export class NodeCommand extends BaseCommand {
1045
1021
* @property {string } nodeIDs
1046
1022
* @property {string } releaseTag
1047
1023
* -- extra args --
1048
- * @property {string } buildZipFile
1049
1024
* @property {string } keysDir
1050
1025
* @property {string[] } nodeIds
1051
1026
* @property {Object } podNames
@@ -1063,7 +1038,6 @@ export class NodeCommand extends BaseCommand {
1063
1038
// create a config object for subsequent steps
1064
1039
ctx . config = /** @type {NodeRefreshConfigClass } **/ this . getConfig ( NodeCommand . REFRESH_CONFIGS_NAME , NodeCommand . REFRESH_FLAGS_LIST ,
1065
1040
[
1066
- 'buildZipFile' ,
1067
1041
'keysDir' ,
1068
1042
'nodeIds' ,
1069
1043
'podNames' ,
@@ -1130,8 +1104,7 @@ export class NodeCommand extends BaseCommand {
1130
1104
subTasks . push ( {
1131
1105
title : `Node: ${ chalk . yellow ( nodeId ) } ` ,
1132
1106
task : ( ) =>
1133
- self . platformInstaller . taskInstall ( podName , config . buildZipFile ,
1134
- config . stagingDir , nodeList , config . keyFormat , config . force )
1107
+ self . platformInstaller . taskInstall ( podName , config . stagingDir , nodeList , config . keyFormat , config . force )
1135
1108
} )
1136
1109
}
1137
1110
@@ -1283,25 +1256,17 @@ export class NodeCommand extends BaseCommand {
1283
1256
1284
1257
// disable the prompts that we don't want to prompt the user for
1285
1258
prompts . disablePrompts ( [
1286
- flags . apiPermissionProperties ,
1287
- flags . applicationProperties ,
1288
- flags . bootstrapProperties ,
1289
1259
flags . chartDirectory ,
1290
1260
flags . devMode ,
1291
1261
flags . force ,
1292
- flags . fstChartVersion ,
1293
- flags . log4j2Xml ,
1294
- flags . settingTxt
1262
+ flags . fstChartVersion
1295
1263
] )
1296
1264
1297
1265
await prompts . execute ( task , self . configManager , NodeCommand . ADD_FLAGS_LIST )
1298
1266
1299
1267
/**
1300
1268
* @typedef {Object } NodeAddConfigClass
1301
1269
* -- flags --
1302
- * @property {string } apiPermissionProperties
1303
- * @property {string } applicationProperties
1304
- * @property {string } bootstrapProperties
1305
1270
* @property {string } cacheDir
1306
1271
* @property {string } chainId
1307
1272
* @property {string } chartDirectory
@@ -1311,14 +1276,11 @@ export class NodeCommand extends BaseCommand {
1311
1276
* @property {boolean } generateGossipKeys
1312
1277
* @property {boolean } generateTlsKeys
1313
1278
* @property {string } keyFormat
1314
- * @property {string } log4j2Xml
1315
1279
* @property {string } namespace
1316
1280
* @property {string } nodeIDs
1317
1281
* @property {string } releaseTag
1318
- * @property {string } settingTxt
1319
1282
* -- extra args --
1320
1283
* @property {string[] } allNodeIds
1321
- * @property {string } buildZipFile
1322
1284
* @property {Date } curDate
1323
1285
* @property {string[] } existingNodeIds
1324
1286
* @property {string } keysDir
@@ -1340,7 +1302,6 @@ export class NodeCommand extends BaseCommand {
1340
1302
const config = /** @type {NodeAddConfigClass } **/ this . getConfig ( NodeCommand . ADD_CONFIGS_NAME , NodeCommand . ADD_FLAGS_LIST ,
1341
1303
[
1342
1304
'allNodeIds' ,
1343
- 'buildZipFile' ,
1344
1305
'curDate' ,
1345
1306
'existingNodeIds' ,
1346
1307
'keysDir' ,
@@ -1564,7 +1525,7 @@ export class NodeCommand extends BaseCommand {
1564
1525
subTasks . push ( {
1565
1526
title : `Node: ${ chalk . yellow ( nodeId ) } ` ,
1566
1527
task : ( ) =>
1567
- self . platformInstaller . taskInstall ( podName , config . buildZipFile , config . stagingDir , config . allNodeIds , config . keyFormat , config . force )
1528
+ self . platformInstaller . taskInstall ( podName , config . stagingDir , config . allNodeIds , config . keyFormat , config . force )
1568
1529
} )
1569
1530
}
1570
1531
0 commit comments