Skip to content

Commit

Permalink
added krkn_recovery_time to the schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tsebastiani committed Apr 16, 2024
1 parent cb8c372 commit eb35a17
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions arcaflow_plugin_kill_pod.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ class KillPodConfig:
},
)

krkn_pod_recovery_time: int = field(
default=60,
metadata={
"name": "Recovery Time",
"description": "The Expected Recovery time fo the pod (used by Krkn to monitor the pod lifecycle)",
},
)

backoff: int = field(
default=1,
metadata={
Expand Down
3 changes: 2 additions & 1 deletion tests/test_arcaflow_plugin_kill_pod.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class KillPodTest(unittest.TestCase):
def test_serialization(self):
plugin.test_object_serialization(
arcaflow_plugin_kill_pod.KillPodConfig(
namespace_pattern=re.compile(".*"), name_pattern=re.compile(".*")
# added knkn_pod_recovery_time only for schema testing
namespace_pattern=re.compile(".*"), name_pattern=re.compile(".*"),krkn_pod_recovery_time=30
),
self.fail,
)
Expand Down

0 comments on commit eb35a17

Please sign in to comment.