From 56edd7f72753da24ea86a27664de5005b9040b3a Mon Sep 17 00:00:00 2001 From: Jeromy Cannon Date: Fri, 17 Jan 2025 20:36:51 +0000 Subject: [PATCH] updated container to use passed in values correctly so we don't need to push the changes through application.env anymore Signed-off-by: Jeromy Cannon --- src/commands/node/tasks.ts | 2 +- src/core/platform_installer.ts | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/commands/node/tasks.ts b/src/commands/node/tasks.ts index a897e362b..a5bf0d111 100644 --- a/src/commands/node/tasks.ts +++ b/src/commands/node/tasks.ts @@ -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), }); } diff --git a/src/core/platform_installer.ts b/src/core/platform_installer.ts index abf35a648..410011bae 100644 --- a/src/core/platform_installer.ts +++ b/src/core/platform_installer.ts @@ -279,7 +279,7 @@ 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( [ @@ -287,16 +287,6 @@ export class PlatformInstaller { 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),