Skip to content

Commit

Permalink
apply recommended changes
Browse files Browse the repository at this point in the history
Signed-off-by: instamenta <[email protected]>
  • Loading branch information
instamenta committed Jan 21, 2025
1 parent 67ad483 commit 82d0a8f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/core/network_overrides_model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ export class NetworkOverridesModel {
const namespace = networkNodeServiceMap.get(nodeAlias).namespace;
const nodeId = +networkNodeServiceMap.get(nodeAlias).nodeId;

const externalPort = +constants.HEDERA_NODE_EXTERNAL_GOSSIP_PORT;
const externalIP = Templates.renderFullyQualifiedNetworkSvcName(namespace, nodeAlias);
const localClusterPort = +constants.HEDERA_NODE_EXTERNAL_GOSSIP_PORT;
const localClusterHostName = Templates.renderFullyQualifiedNetworkSvcName(namespace, nodeAlias);

const haProxyFqdn = Templates.renderFullyQualifiedHaProxyName(nodeAlias, namespace);

this.interfaceBindings.push({nodeId, hostname: haProxyFqdn, port: externalPort});
this.endpointOverrides.push({nodeId, hostname: externalIP, port: externalPort});
this.interfaceBindings.push({nodeId, hostname: localClusterHostName, port: localClusterPort});
// TODO future, add endpointOverrides for addresses external to cluster in multi-cluster support situation
// this.endpointOverrides.push({nodeId, hostname: externalHostname, port: externalPort});
});
}

Expand Down

0 comments on commit 82d0a8f

Please sign in to comment.