Skip to content

Commit 969ecf3

Browse files
committed
remove TODOs
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent f67edba commit 969ecf3

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/commands/node.mjs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ export class NodeCommand extends BaseCommand {
954954

955955
// set up the sub-tasks
956956
return task.newListr(subTasks, {
957-
concurrent: true, // since we download in the container directly, we want this to be in parallel across all nodes
957+
concurrent: true,
958958
rendererOptions: {
959959
collapseSubtasks: false
960960
}
@@ -992,14 +992,18 @@ export class NodeCommand extends BaseCommand {
992992
const config = ctx.config
993993

994994
const subTasks = []
995+
const nodeList = []
996+
const serviceMap = await self.accountManager.getNodeServiceMap(ctx.config.namespace)
997+
for (const serviceObject of serviceMap.values()) {
998+
nodeList.push(serviceObject.node)
999+
}
9951000
for (const nodeId of config.nodeIds) {
9961001
const podName = config.podNames[nodeId]
9971002
subTasks.push({
9981003
title: `Node: ${chalk.yellow(nodeId)}`,
9991004
task: () =>
1000-
self.plaformInstaller.taskInstall(podName, config.buildZipFile, config.stagingDir,
1001-
['node0', 'node1', 'node2', 'node3'], // TODO get nodeIds to copy keys from // config.nodeIds,
1002-
config.keyFormat, config.force)
1005+
self.plaformInstaller.taskInstall(podName, config.buildZipFile,
1006+
config.stagingDir, nodeList, config.keyFormat, config.force)
10031007
})
10041008
}
10051009

test/e2e/commands/node.test.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ describe.each([
162162
it('Node0 refresh should succeed', async () => {
163163
await expect(nodeCmd.refresh(argv)).resolves.toBeTruthy()
164164
}, 1200000)
165-
// TODO need to test with PVCs
166165
// TODO will have changes when configMap/secrets are implemented
167166
it('Balance query and account create should succeed', async () => {
168167
expect.assertions(3)
@@ -244,7 +243,6 @@ describe.each([
244243
it('Node0 refresh should succeed', async () => {
245244
await expect(nodeCmd.refresh(argv)).resolves.toBeTruthy()
246245
}, 1200000)
247-
// TODO need to test with PVCs
248246
// TODO will have changes when configMap/secrets are implemented
249247
it('Balance query and account create should succeed', async () => {
250248
expect.assertions(3)

0 commit comments

Comments
 (0)