Skip to content

Commit

Permalink
fix: use better internal IPs for 0.58.5+ (#1429)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <[email protected]>
  • Loading branch information
nathanklick authored Feb 20, 2025
1 parent f43870e commit 26279ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
22 changes: 5 additions & 17 deletions src/core/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,14 @@ export function getInternalIp(releaseVersion: semver.SemVer, namespaceName: Name
//? Explanation: for v0.59.x the internal IP address is set to 127.0.0.1 to avoid an ISS
let internalIp = '';

// for versions that satisfy 0.59.x
if (semver.satisfies(releaseVersion, '^0.59.0', {includePrerelease: true})) {
// for versions that satisfy 0.58.5+
// @ts-expect-error TS2353: Object literal may only specify known properties
if (semver.gte(releaseVersion, '0.58.5', {includePrerelease: true})) {
internalIp = '127.0.0.1';
}

// versions less than 0.59.0
else if (
semver.lt(
releaseVersion,
'0.59.0',
// @ts-expect-error TS2353: Object literal may only specify known properties
{includePrerelease: true},
)
) {
internalIp = Templates.renderFullyQualifiedNetworkPodName(namespaceName, nodeAlias);
}

// versions greater than 0.59.0
// versions less than 0.58.5
else {
internalIp = '127.0.0.1';
internalIp = Templates.renderFullyQualifiedNetworkPodName(namespaceName, nodeAlias);
}

return internalIp;
Expand Down
2 changes: 1 addition & 1 deletion version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

export const HELM_VERSION = 'v3.14.2';
export const SOLO_CHART_VERSION = '0.44.0';
export const HEDERA_PLATFORM_VERSION = 'v0.58.5';
export const HEDERA_PLATFORM_VERSION = 'v0.58.10';
export const LOCAL_HEDERA_PLATFORM_VERSION = 'v0.58.3';
export const MIRROR_NODE_VERSION = 'v0.122';
export const HEDERA_EXPLORER_VERSION = '24.12.0';
Expand Down

0 comments on commit 26279ac

Please sign in to comment.