Skip to content

Commit 907d5c9

Browse files
committed
add plugin "mission"
1 parent 71982d5 commit 907d5c9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/warnet/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
TANK_MISSION = "tank"
2222
COMMANDER_MISSION = "commander"
23+
PLUGIN_MISSION = "plugin"
2324

2425
BITCOINCORE_CONTAINER = "bitcoincore"
2526
COMMANDER_CONTAINER = "commander"

src/warnet/control.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
COMMANDER_CHART,
2424
COMMANDER_CONTAINER,
2525
COMMANDER_MISSION,
26+
PLUGIN_MISSION,
2627
TANK_MISSION,
2728
)
2829
from .hooks import api
@@ -363,8 +364,10 @@ def format_pods(pods: list[V1Pod]) -> list[str]:
363364
pod_list = []
364365
formatted_commanders = format_pods(get_mission(COMMANDER_MISSION))
365366
formatted_tanks = format_pods(get_mission(TANK_MISSION))
367+
formatted_plugins = format_pods(get_mission(PLUGIN_MISSION))
366368
pod_list.extend(formatted_commanders)
367369
pod_list.extend(formatted_tanks)
370+
pod_list.extend(formatted_plugins)
368371

369372
except Exception as e:
370373
print(f"Could not fetch any pods in namespace ({namespace}): {e}")

0 commit comments

Comments
 (0)