Skip to content

Commit ae6e67f

Browse files
Support start_interval in healthcheck block
Signed-off-by: Robin Syl <robin@robinsyl.dev>
1 parent 6372c0a commit ae6e67f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

podman_compose.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1041,13 +1041,15 @@ async def container_to_args(compose, cnt, detached=True):
10411041
else:
10421042
raise ValueError("'healthcheck.test' either a string or a list")
10431043

1044-
# interval, timeout and start_period are specified as durations.
1044+
# interval, timeout, start_period, and start_interval are specified as durations.
10451045
if "interval" in healthcheck:
10461046
podman_args.extend(["--health-interval", healthcheck["interval"]])
10471047
if "timeout" in healthcheck:
10481048
podman_args.extend(["--health-timeout", healthcheck["timeout"]])
10491049
if "start_period" in healthcheck:
10501050
podman_args.extend(["--health-start-period", healthcheck["start_period"]])
1051+
if "start_interval" in healthcheck:
1052+
podman_args.extend(["--health-startup-interval", healthcheck["start_interval"]])
10511053

10521054
# convert other parameters to string
10531055
if "retries" in healthcheck:

0 commit comments

Comments
 (0)