-
Bug
-
Resolution: Done
-
Minor
-
Logging 5.7.12, Logging 5.8.5, Logging 5.9.0
-
False
-
None
-
False
-
NEW
-
NEW
-
Before this update, the build pipeline missed to add linker flags for build date caused Loki builds to report empty strings for build date and goVersion. With this update, the build pipeline adds missing linker flags resolves the issue.
-
Release Note Not Required
-
-
-
Log Storage - Sprint 251
-
Informational
Description of problem:
buildDate,builduser and goVersion are not exposed in buildinfo. Can we expose these infos?
curl -k https://localhost:3101/loki/api/v1/status/buildinfo
{"version":"v2.9.4","revision":"8ce8168","branch":"upstream-v2.9.4","buildUser":"","buildDate":"","goVersion":""}By the way, there are some build info image label
"build-date": "2024-03-11T15:26:47", "io.buildah.version": "1.29.0", "io.openshift.build.commit.id": "8ce8168739bf629bd44f89f095b8705edf82a507", "release": "13", "summary": "Provides the latest release of Red Hat Universal Base Image 9.", "url": "https://access.redhat.com/containers/#/registry.access.redhat.com/openshift-logging/logging-loki-rhel9/images/v2.9.4-13", "vendor": "Red Hat, Inc.", "version": "v2.9.4"
.....
Steps to Reproduce:
- oc exec <loki-pod> – curl -k https://localhost:3101/loki/api/v1/status/buildinfo
- ...