Skip to content

Commit

Permalink
Merge pull request #637 from pinheadmz/fo-port
Browse files Browse the repository at this point in the history
fork observer: get RPC ports dynamically for regtest/signet
  • Loading branch information
pinheadmz authored Oct 8, 2024
2 parents 02ef87a + b3985bc commit 4beff8b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/warnet/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from .k8s import (
get_default_namespace,
get_default_namespace_or,
get_mission,
get_namespaces_by_type,
wait_for_ingress_controller,
wait_for_pod_ready,
Expand Down Expand Up @@ -181,15 +182,15 @@ def deploy_fork_observer(directory: Path, debug: bool) -> bool:
override_string = ""

# Add an entry for each node in the graph
for i, node in enumerate(network_file["nodes"]):
node_name = node.get("name")
for i, tank in enumerate(get_mission("tank")):
node_name = tank.metadata.name
node_config = f"""
[[networks.nodes]]
id = {i}
name = "{node_name}"
description = "A node. Just A node."
description = ""
rpc_host = "{node_name}.{default_namespace}.svc"
rpc_port = 18443
rpc_port = {int(tank.metadata.labels["RPCPort"])}
rpc_user = "forkobserver"
rpc_password = "tabconf2024"
"""
Expand Down

0 comments on commit 4beff8b

Please sign in to comment.