diff --git a/healthcheck/command.go b/healthcheck/command.go index 3d3b672..46d366a 100644 --- a/healthcheck/command.go +++ b/healthcheck/command.go @@ -41,9 +41,6 @@ func (config *CommandHealthcheckConfiguration) Validate() error { return errors.New("The healthcheck timeout is missing") } if !config.Base.OneOff { - if config.Base.Interval < Duration(2*time.Second) { - return errors.New("The healthcheck interval should be greater than 2 second") - } if config.Base.Interval < config.Timeout { return errors.New("The healthcheck interval should be greater than the timeout") } diff --git a/healthcheck/dns.go b/healthcheck/dns.go index 5181c85..106e73a 100644 --- a/healthcheck/dns.go +++ b/healthcheck/dns.go @@ -42,9 +42,6 @@ func (config *DNSHealthcheckConfiguration) Validate() error { return errors.New("The healthcheck timeout is missing") } if !config.Base.OneOff { - if config.Base.Interval < Duration(2*time.Second) { - return errors.New("The healthcheck interval should be greater than 2 second") - } if config.Base.Interval < config.Timeout { return errors.New("The healthcheck interval should be greater than the timeout") } diff --git a/healthcheck/http.go b/healthcheck/http.go index 97326f1..b371fcb 100644 --- a/healthcheck/http.go +++ b/healthcheck/http.go @@ -70,9 +70,6 @@ func (config *HTTPHealthcheckConfiguration) Validate() error { config.Method = "GET" } if !config.Base.OneOff { - if config.Base.Interval < Duration(2*time.Second) { - return errors.New("The healthcheck interval should be greater than 2 second") - } if config.Base.Interval < config.Timeout { return errors.New("The healthcheck interval should be greater than the timeout") } diff --git a/healthcheck/tcp.go b/healthcheck/tcp.go index e835975..9f53a6a 100644 --- a/healthcheck/tcp.go +++ b/healthcheck/tcp.go @@ -37,9 +37,6 @@ func (config *TCPHealthcheckConfiguration) Validate() error { return errors.New("The healthcheck timeout is missing") } if !config.Base.OneOff { - if config.Base.Interval < Duration(2*time.Second) { - return errors.New("The healthcheck interval should be greater than 2 second") - } if config.Base.Interval < config.Timeout { return errors.New("The healthcheck interval should be greater than the timeout") } diff --git a/healthcheck/tls.go b/healthcheck/tls.go index 65adc19..fbae5f2 100644 --- a/healthcheck/tls.go +++ b/healthcheck/tls.go @@ -54,9 +54,6 @@ func (config *TLSHealthcheckConfiguration) Validate() error { return errors.New("The healthcheck timeout is missing") } if !config.Base.OneOff { - if config.Base.Interval < Duration(2*time.Second) { - return errors.New("The healthcheck interval should be greater than 2 second") - } if config.Base.Interval < config.Timeout { return errors.New("The healthcheck interval should be greater than the timeout") }