Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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