Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 907e8e1

Browse files
committed
implement healthcheck.disable by setting Test: "NONE"
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent f34f49a commit 907e8e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

local/moby/convert.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,12 @@ func ToMobyHealthCheck(check *compose.HealthCheckConfig) *container.HealthConfig
132132
if check.Retries != nil {
133133
retries = int(*check.Retries)
134134
}
135+
test := check.Test
136+
if check.Disable {
137+
test = []string{"NONE"}
138+
}
135139
return &container.HealthConfig{
136-
Test: check.Test,
140+
Test: test,
137141
Interval: interval,
138142
Timeout: timeout,
139143
StartPeriod: period,

0 commit comments

Comments
 (0)