Skip to content

Commit eaa6b8c

Browse files
committed
Only filter cometbft ports by migrations
Changing the dependency structure is too much of a mess and this seems good enough. [static] Signed-off-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
1 parent d832ab5 commit eaa6b8c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cluster/pulumi/infra/src/istio.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ function configureInternalGatewayService(
158158
) {
159159
const externalIPRanges = loadIPRanges();
160160
// see notes when installing a CometBft node in the full deployment
161-
const cometBftIngressPorts = Array.from(
162-
Array(DecentralizedSynchronizerUpgradeConfig.highestMigrationId + 1).keys()
163-
).flatMap((domain: number) => {
164-
return Array.from(Array(10).keys()).map(node => {
165-
return ingressPort(`cometbft-${domain}-${node}-gw`, Number(`26${domain}${node}6`));
161+
const cometBftIngressPorts = DecentralizedSynchronizerUpgradeConfig.runningMigrations()
162+
.map(m => m.id)
163+
.flatMap((domain: number) => {
164+
return Array.from(Array(10).keys()).map(node => {
165+
return ingressPort(`cometbft-${domain}-${node}-gw`, Number(`26${domain}${node}6`));
166+
});
166167
});
167-
});
168168
return configureGatewayService(
169169
ingressNs,
170170
ingressIp,

0 commit comments

Comments
 (0)