Skip to content

Commit

Permalink
updated container to use passed in values correctly so we don't need …
Browse files Browse the repository at this point in the history
…to push the changes through application.env anymore

Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon committed Jan 17, 2025
1 parent 0b7aa71 commit 56edd7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/commands/node/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ export class NodeCommandTasks {
const podName = ctx.config.podNames[nodeAlias];
subTasks.push({
title: `Node: ${chalk.yellow(nodeAlias)}`,
task: () => this.platformInstaller.taskSetup(podName, nodeAlias, ctx.config.stagingDir, isGenesis),
task: () => this.platformInstaller.taskSetup(podName, ctx.config.stagingDir, isGenesis),
});
}

Expand Down
12 changes: 1 addition & 11 deletions src/core/platform_installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,24 +279,14 @@ export class PlatformInstaller {
}

/** Return a list of task to perform node directory setup */
taskSetup(podName: PodName, nodeAlias: NodeAlias, stagingDir: string, isGenesis: boolean) {
taskSetup(podName: PodName, stagingDir: string, isGenesis: boolean) {
const self = this;
return new Listr(
[
{
title: 'Copy configuration files',
task: async () => await self.copyConfigurationFiles(stagingDir, podName, isGenesis),
},
{
title: 'Update with node specific values',
task: async () =>
await this.k8.execContainer(podName, constants.ROOT_CONTAINER, [
'bash',
'-c',
`echo CONSENSUS_NODE_ID=${Templates.nodeIdFromNodeAlias(nodeAlias)} >> /etc/network-node/application.env;` +
` echo CONSENSUS_NODE_ALIAS=${nodeAlias} >> /etc/network-node/application.env`,
]),
},
{
title: 'Set file permissions',
task: async () => await self.setPlatformDirPermissions(podName),
Expand Down

0 comments on commit 56edd7f

Please sign in to comment.