Browse Source

Merge pull request #35533 from AliyunContainerService/supress-warning-healthcheck-none

Suppress warning when NONE was set for healthcheck
Yong Tang 7 năm trước cách đây
mục cha
commit
29d6aef393
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      daemon/health.go

+ 2 - 0
daemon/health.go

@@ -254,6 +254,8 @@ func getProbe(c *container.Container) probe {
 		return &cmdProbe{shell: false}
 		return &cmdProbe{shell: false}
 	case "CMD-SHELL":
 	case "CMD-SHELL":
 		return &cmdProbe{shell: true}
 		return &cmdProbe{shell: true}
+	case "NONE":
+		return nil
 	default:
 	default:
 		logrus.Warnf("Unknown healthcheck type '%s' (expected 'CMD') in container %s", config.Test[0], c.ID)
 		logrus.Warnf("Unknown healthcheck type '%s' (expected 'CMD') in container %s", config.Test[0], c.ID)
 		return nil
 		return nil