Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions internal/server/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion internal/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading