@@ -32,6 +32,7 @@ import {type NamespaceName} from '../core/kube/resources/namespace/namespace_nam
32
32
import { SecretType } from '../core/kube/resources/secret/secret_type.js' ;
33
33
import { PvcRef } from '../core/kube/resources/pvc/pvc_ref.js' ;
34
34
import { PvcName } from '../core/kube/resources/pvc/pvc_name.js' ;
35
+ import { type ConsensusNode } from '../core/model/consensus_node.js' ;
35
36
36
37
export interface NetworkDeployConfigClass {
37
38
applicationEnv : string ;
@@ -72,6 +73,8 @@ export interface NetworkDeployConfigClass {
72
73
storageBucketPrefix : string ;
73
74
backupBucket : string ;
74
75
googleCredential : string ;
76
+ consensusNodes : ConsensusNode [ ] ;
77
+ contexts : string [ ] ;
75
78
}
76
79
77
80
export class NetworkCommand extends BaseCommand {
@@ -381,16 +384,22 @@ export class NetworkCommand extends BaseCommand {
381
384
const namespace = await resolveNamespaceFromDeployment ( this . localConfig , this . configManager , task ) ;
382
385
383
386
// create a config object for subsequent steps
384
- const config = this . getConfig ( NetworkCommand . DEPLOY_CONFIGS_NAME , NetworkCommand . DEPLOY_FLAGS_LIST , [
385
- 'chartPath' ,
386
- 'keysDir' ,
387
- 'nodeAliases' ,
388
- 'stagingDir' ,
389
- 'stagingKeysDir' ,
390
- 'valuesArg' ,
391
- 'resolvedThrottlesFile' ,
392
- 'namespace' ,
393
- ] ) as NetworkDeployConfigClass ;
387
+ const config : NetworkDeployConfigClass = this . getConfig (
388
+ NetworkCommand . DEPLOY_CONFIGS_NAME ,
389
+ NetworkCommand . DEPLOY_FLAGS_LIST ,
390
+ [
391
+ 'chartPath' ,
392
+ 'keysDir' ,
393
+ 'nodeAliases' ,
394
+ 'stagingDir' ,
395
+ 'stagingKeysDir' ,
396
+ 'valuesArg' ,
397
+ 'resolvedThrottlesFile' ,
398
+ 'namespace' ,
399
+ 'consensusNodes' ,
400
+ 'contexts' ,
401
+ ] ,
402
+ ) as NetworkDeployConfigClass ;
394
403
395
404
config . nodeAliases = helpers . parseNodeAliases ( config . nodeAliasesUnparsed ) ;
396
405
@@ -422,6 +431,9 @@ export class NetworkCommand extends BaseCommand {
422
431
config . valuesArg = await this . prepareValuesArg ( config ) ;
423
432
config . namespace = namespace ;
424
433
434
+ config . consensusNodes = this . getConsensusNodes ( ) ;
435
+ config . contexts = this . getContexts ( ) ;
436
+
425
437
if ( ! ( await this . k8Factory . default ( ) . namespaces ( ) . has ( namespace ) ) ) {
426
438
await this . k8Factory . default ( ) . namespaces ( ) . create ( namespace ) ;
427
439
}
0 commit comments