diff --git a/internal/server/health.go b/internal/server/health.go index 42a9b63..4fca395 100644 --- a/internal/server/health.go +++ b/internal/server/health.go @@ -8,9 +8,8 @@ import ( // healthPaths are the liveness/readiness endpoints, served on the MAIN port // (the org pair standard: /healthz = liveness, /readyz = readiness — aliases -// here, kromgo has no serving condition beyond being up). The /-/ variants are -// kept for backward compatibility. -var healthPaths = []string{"/healthz", "/readyz", "/-/health", "/-/ready"} +// here, kromgo has no serving condition beyond being up). +var healthPaths = []string{"/healthz", "/readyz"} // withHealth overlays the health endpoints onto the application handler, so // probes work regardless of whether the optional metrics listener is enabled. diff --git a/internal/server/server_test.go b/internal/server/server_test.go index 639c7ff..73ee99c 100644 --- a/internal/server/server_test.go +++ b/internal/server/server_test.go @@ -38,7 +38,7 @@ func TestWithHealth(t *testing.T) { appHit = true w.WriteHeader(http.StatusOK) })) - for _, path := range []string{"/healthz", "/readyz", "/-/health", "/-/ready"} { + for _, path := range []string{"/healthz", "/readyz"} { t.Run(path, func(t *testing.T) { req := httptest.NewRequest(http.MethodGet, path, nil) w := httptest.NewRecorder()