HealthCheck: show enterprise commit (#75242)

This commit is contained in:
Ezequiel Victorero authored and GitHub committed 2023-09-22 08:17:10 -03:00
1 parent 3529b7413d
commit 4cfc834c08
10 files changed
+102 -30

No files matched your search

+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()) {