Merge pull request #35533 from AliyunContainerService/supress-warning-healthcheck-none
Suppress warning when NONE was set for healthcheck Upstream-commit: 29d6aef3930bf2ba815e27f4507f035a7fb5ba6c Component: engine
This commit is contained in:
@@ -254,6 +254,8 @@ func getProbe(c *container.Container) probe {
|
||||
return &cmdProbe{shell: false}
|
||||
case "CMD-SHELL":
|
||||
return &cmdProbe{shell: true}
|
||||
case "NONE":
|
||||
return nil
|
||||
default:
|
||||
logrus.Warnf("Unknown healthcheck type '%s' (expected 'CMD') in container %s", config.Test[0], c.ID)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user