HealthCheck: show enterprise commit (#75242)

This commit is contained in:
Ezequiel Victorero
2023-09-22 08:17:10 -03:00
committed by GitHub
parent 3529b7413d
commit 4cfc834c08
10 changed files with 102 additions and 30 deletions
+3
View File
@@ -679,6 +679,9 @@ func (hs *HTTPServer) apiHealthHandler(ctx *web.Context) {
if !hs.Cfg.AnonymousHideVersion {
data.Set("version", hs.Cfg.BuildVersion)
data.Set("commit", hs.Cfg.BuildCommit)
if hs.Cfg.EnterpriseBuildCommit != "NA" && hs.Cfg.EnterpriseBuildCommit != "" {
data.Set("enterpriseCommit", hs.Cfg.EnterpriseBuildCommit)
}
}
if !hs.databaseHealthy(ctx.Req.Context()) {