From 25fdd634ca127935d2bb0328b6238eaef216f358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?El=C3=A9onore=20Bommart?= Date: Thu, 30 Oct 2025 15:41:19 +0100 Subject: [PATCH] remove minimum interval requirements --- healthcheck/command.go | 3 --- healthcheck/dns.go | 3 --- healthcheck/http.go | 3 --- healthcheck/tcp.go | 3 --- healthcheck/tls.go | 3 --- 5 files changed, 15 deletions(-) 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") }