Change healthcheck status code to 204

Change-Id: I4e18c07eb98ead52f9ef71b3c65325ed13ce2934
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
This commit is contained in:
Ruslan Aliev 2024-03-11 19:01:42 -05:00
parent ecc7b61434
commit 37c26294f0
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}

View File

@ -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