summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-01-06 23:36:09 +0100
committerGitHub <noreply@github.com>2022-01-06 23:36:09 +0100
commit3ac1219cbcfe8ccd83ed7b73b92e1d6f13abf550 (patch)
tree4fe890289a727982ddf77569ac1d1db45a8068c8 /libpod
parentd62752819214ee7f910e25d368d427fbcac74b17 (diff)
parent2a524fcaec4e6f66461d7cdda1bb73ed7c50f026 (diff)
downloadpodman-3ac1219cbcfe8ccd83ed7b73b92e1d6f13abf550.tar.gz
podman-3ac1219cbcfe8ccd83ed7b73b92e1d6f13abf550.tar.bz2
podman-3ac1219cbcfe8ccd83ed7b73b92e1d6f13abf550.zip
Merge pull request #12614 from baude/bz2028408
fix healthcheck timeouts and ut8 coercion
Diffstat (limited to 'libpod')
-rw-r--r--libpod/define/healthchecks.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/libpod/define/healthchecks.go b/libpod/define/healthchecks.go
index 4114262b6..bde449d30 100644
--- a/libpod/define/healthchecks.go
+++ b/libpod/define/healthchecks.go
@@ -34,3 +34,16 @@ const (
// HealthCheckDefined means the healthcheck was found on the container
HealthCheckDefined HealthCheckStatus = iota
)
+
+// Healthcheck defaults. These are used both in the cli as well in
+// libpod and were moved from cmd/podman/common
+const (
+ // DefaultHealthCheckInterval default value
+ DefaultHealthCheckInterval = "30s"
+ // DefaultHealthCheckRetries default value
+ DefaultHealthCheckRetries uint = 3
+ // DefaultHealthCheckStartPeriod default value
+ DefaultHealthCheckStartPeriod = "0s"
+ // DefaultHealthCheckTimeout default value
+ DefaultHealthCheckTimeout = "30s"
+)