Skip to content

Commit

Permalink
fix: use namespace while querying for pods
Browse files Browse the repository at this point in the history
Signed-off-by: Lenin Mehedy <[email protected]>
  • Loading branch information
leninmehedy committed Nov 9, 2023
1 parent 48ed2c6 commit 8ffae97
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fullstack-network-manager/src/commands/node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ export class NodeCommand extends BaseCommand {
}
} else {
nodeIds = []
let output = await this.kubectl.get('pods', `-l fullstack.hedera.com/type=network-node`, '--no-headers', `-o custom-columns=":metadata.name"`)
let output = await this.kubectl.get('pods',
`-l fullstack.hedera.com/type=network-node`,
'--no-headers',
`-o custom-columns=":metadata.name"`,
`-n "${namespace}"`
)
output.forEach(podName => {
nodeIds.push(Templates.extractNodeIdFromPodName(podName))
podNames.push(podName)
Expand Down

0 comments on commit 8ffae97

Please sign in to comment.