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
11 changes: 7 additions & 4 deletions src/faucet/op-faucet/op_faucet_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,24 @@ def launch(
)

config = _get_config(
image,
faucet_config,
image=image,
faucet_config=faucet_config,
network_ids=[f.ChainID for f in faucets],
)
plan.add_service(service_name, config)


def _get_config(
image,
faucet_config,
network_ids,
):
"""Get the ServiceConfig for the op-faucet service.

Args:
image (str): The image to use for the op-faucet service.
faucet_config (artifact): The config artifact for the op-faucet service.
network_ids (list of str): The network IDs to use for the op-faucet service.
"""
mount_path = "/config"
cmd = [
Expand All @@ -66,8 +69,8 @@ def _get_config(
),
},
labels={
"op.kind": "faucet"
# TODO Add network IDs
"op.kind": "faucet",
"op.network.id": "-".join(network_ids),
},
files={
mount_path: faucet_config,
Expand Down
Loading