+++ This bug was initially created as a clone of Bug #1943698 +++ Description of problem: operator-sdk downstream version not detected by metrics The metrics annotation is treating all versions with a -XXX as a git sha and appends +git. So the downstream is being detected is v1.3.0+git which means it falsely looks like a built from source upstream v1.3.0 which is incorrect.
Verified. operator-sdk version operator-sdk version: "v1.3.0-ocp", commit: "6d9a4e195549d1ba8bcb69d8837c2b43bcc702d4", kubernetes version: "v1.19.4", go version: "go1.14.2", GOOS: "linux", GOARCH: "amd64"
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.7.7 bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:1149