Skip to content

Commit fc253dc

Browse files
committed
add plugin "mission"
1 parent 3a2c08e commit fc253dc

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
@@ -382,8 +383,10 @@ def format_pods(pods: list[V1Pod]) -> list[str]:
382383
pod_list = []
383384
formatted_commanders = format_pods(get_mission(COMMANDER_MISSION))
384385
formatted_tanks = format_pods(get_mission(TANK_MISSION))
386+
formatted_plugins = format_pods(get_mission(PLUGIN_MISSION))
385387
pod_list.extend(formatted_commanders)
386388
pod_list.extend(formatted_tanks)
389+
pod_list.extend(formatted_plugins)
387390

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

0 commit comments

Comments
 (0)