Skip to content

Commit d980b55

Browse files
recursiveribbonsmokibit
authored andcommitted
Add support for "start_interval" in healthcheck block
Signed-off-by: Robin Syl <[email protected]> Signed-off-by: Monika Kairaityte <[email protected]>
1 parent 09e1274 commit d980b55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

podman_compose.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,13 +1303,15 @@ async def container_to_args(
13031303
else:
13041304
raise ValueError("'healthcheck.test' either a string or a list")
13051305

1306-
# interval, timeout and start_period are specified as durations.
1306+
# interval, timeout, start_period, and start_interval are specified as durations.
13071307
if "interval" in healthcheck:
13081308
podman_args.extend(["--health-interval", healthcheck["interval"]])
13091309
if "timeout" in healthcheck:
13101310
podman_args.extend(["--health-timeout", healthcheck["timeout"]])
13111311
if "start_period" in healthcheck:
13121312
podman_args.extend(["--health-start-period", healthcheck["start_period"]])
1313+
if "start_interval" in healthcheck:
1314+
podman_args.extend(["--health-startup-interval", healthcheck["start_interval"]])
13131315

13141316
# convert other parameters to string
13151317
if "retries" in healthcheck:

0 commit comments

Comments
 (0)