Skip to content

Commit 5e1dfe5

Browse files
committed
Fix issue where container options for K8s app (volume mount, host.docker.internal) were misaligned in generated docker compose. Change role -> name for template scenarios.
1 parent f11a262 commit 5e1dfe5

4 files changed

Lines changed: 3 additions & 9 deletions

File tree

generate_compose.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ def generate_docker_compose(scenario: dict[str, Any], app: str) -> str:
184184
participant_names = [p["name"] for p in participants]
185185

186186
# Expose kubeconfig and localhost for k8s app to allow communication with kind cluster
187-
k8s_service_options = """
188-
extra_hosts:
187+
k8s_service_options = """extra_hosts:
189188
- "host.docker.internal:host-gateway"
190189
volumes:
191190
- ./kubeconfig:/root/.kube/:ro

k8s_scenario.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ agentbeats_id = ""
33
env = { API_KEY = "${GITHUB_SECRET_NAME}", LOG_LEVEL = "INFO" }
44

55
[[participants]]
6-
role = "network_operator"
76
agentbeats_id = ""
7+
name = "network_operator"
88
env = {}
99

1010
[config]

malt_scenario.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ agentbeats_id = ""
77
name = "network_operator"
88
env = {}
99

10-
[[participants]]
11-
agentbeats_id = ""
12-
name = "role_2_name"
13-
env = {}
14-
1510
[config]
1611
prompt_type = "zeroshot_base"
1712
num_queries = 1

route_scenario.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ agentbeats_id = ""
33
env = { API_KEY = "${GITHUB_SECRET_NAME}", LOG_LEVEL = "INFO" }
44

55
[[participants]]
6-
role = "network_operator"
76
agentbeats_id = ""
7+
name = "network_operator"
88
env = {}
99

1010
[config]

0 commit comments

Comments
 (0)