From 37c26294f069c87e004bf020b127afd550d1d423 Mon Sep 17 00:00:00 2001 From: Ruslan Aliev Date: Mon, 11 Mar 2024 19:01:42 -0500 Subject: [PATCH] Change healthcheck status code to 204 Change-Id: I4e18c07eb98ead52f9ef71b3c65325ed13ce2934 Signed-off-by: Ruslan Aliev --- main.go | 2 +- pkg/server/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 9d9ea38..290267d 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,7 @@ import ( func main() { if err := cmd.NewArmadaCommand(os.Stdout).Execute(); err != nil { - fmt.Fprintln(os.Stderr, err) + _, _ = fmt.Fprintln(os.Stderr, err) os.Exit(1) } } diff --git a/pkg/server/server.go b/pkg/server/server.go index 25845e4..b047203 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -130,7 +130,7 @@ func Releases(c *gin.Context) { } func Health(c *gin.Context) { - c.String(http.StatusOK, "OK") + c.String(http.StatusNoContent, "OK") } // RunE runs the phase