From 9890fadd29d2728df3c37cffca42a1d6a2e15895 Mon Sep 17 00:00:00 2001 From: Piotr Icikowski Date: Sun, 6 Mar 2022 23:44:18 +0100 Subject: [PATCH] Update kubeprobes to v1.1.0 --- application/go.mod | 2 +- application/go.sum | 4 ++-- application/health/endpoints.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/go.mod b/application/go.mod index 9e96b5c..eb42f24 100644 --- a/application/go.mod +++ b/application/go.mod @@ -3,7 +3,7 @@ module icikowski.pl/gpts go 1.17 require ( - github.com/Icikowski/kubeprobes v1.0.0 + github.com/Icikowski/kubeprobes v1.1.0 github.com/gorilla/mux v1.8.0 github.com/rs/zerolog v1.26.1 github.com/stretchr/testify v1.7.0 diff --git a/application/go.sum b/application/go.sum index 2456a20..7a026fb 100644 --- a/application/go.sum +++ b/application/go.sum @@ -1,5 +1,5 @@ -github.com/Icikowski/kubeprobes v1.0.0 h1:VyqIwYS+dnTS5Ps27G5bmzmGUqnxHOKYqAI1I8XtziA= -github.com/Icikowski/kubeprobes v1.0.0/go.mod h1:ZGFCGfxe+CKXEkam+xtxqQgMiWw9NThbik7bSpbcGx0= +github.com/Icikowski/kubeprobes v1.1.0 h1:4Q3HdKOW78w97AXG3xulQh9/RiPhdPyKPDn6cxY9guY= +github.com/Icikowski/kubeprobes v1.1.0/go.mod h1:ZGFCGfxe+CKXEkam+xtxqQgMiWw9NThbik7bSpbcGx0= github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/application/health/endpoints.go b/application/health/endpoints.go index 6b80b4c..cc0f023 100644 --- a/application/health/endpoints.go +++ b/application/health/endpoints.go @@ -16,7 +16,7 @@ func PrepareHealthEndpoints(log zerolog.Logger, port int) *http.Server { Int("port", port). Msg("preparing readiness & liveness endpoints") - health := kubeprobes.NewKubeprobes( + health := kubeprobes.New( kubeprobes.WithLivenessProbes(ApplicationStatus.GetProbeFunction()), kubeprobes.WithReadinessProbes(ServiceStatus.GetProbeFunction()), )