Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions scripts/prod/common_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ class Service(Enum):
"""Service types mapping to their configmap and pod names."""

Core = ("sequencer-core-config", "sequencer-core-statefulset-0")
# Committer runs as a StatefulSet (like Core), so its pod ends in "-statefulset-0".
Committer = ("sequencer-committer-config", "sequencer-committer-statefulset-0")
Gateway = ("sequencer-gateway-config", "sequencer-gateway-deployment")
L1 = ("sequencer-l1-config", "sequencer-l1-deployment")
Mempool = ("sequencer-mempool-config", "sequencer-mempool-deployment")
Expand Down
6 changes: 6 additions & 0 deletions scripts/prod/test_enum_cli_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ def test_service_str_is_the_accepted_token():
assert Service[str(service)] is service


def test_committer_service_maps_to_statefulset_resources():
# Committer runs as a StatefulSet, so it follows the Core "-statefulset-0" pod pattern.
assert Service.Committer.config_map_name == "sequencer-committer-config"
assert Service.Committer.pod_name == "sequencer-committer-statefulset-0"


def test_invalid_restart_strategy_raises_informative_error():
# Enum value lookup raises ValueError; the converter must translate it to ArgumentTypeError
# with the valid options, rather than letting argparse fall back to a generic message.
Expand Down
Loading