Kuadrant / authorino-operator

Kubernetes Operator to manage Authorino instances
Apache License 2.0
9 stars 20 forks source link

version commit hash #209

Closed eguzki closed 2 months ago

eguzki commented 2 months ago

What

Generates log line with traceable version for custom builds as well as relese builds. Consistent with other kuadrant components.

{"level":"info","ts":"2024-09-16T17:32:47+02:00","logger":"authorino-operator.controller.Authorino.setup","msg":"booting up authorino operator","version":"012ee63c42d573ea6c08b3895ab3709ed052a25f","commit":"012ee63c42d573ea6c08b3895ab3709ed052a25f","dirty":"true","default authorino image":"quay.io/kuadrant/authorino:latest"}

This PR does not change the value of `version

Attribute Description
version Same as before. This PR does not change the value. For custom builds: git sha, for releases: release number vX.Y.Z
commit git sha
dirty true when not git committed files used in the build

For releases, the VERSION attributes provides high level overview of the release number. Useful to determine included features. The COMMIT attribute provides git reference. Useful for engineering reporting.

Verification Steps

You should see a log line like above

PS: Where is the "make local-setup" so useful and available in all kuadrant operators?

codecov-commenter commented 2 months ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 61.78%. Comparing base (012ee63) to head (a3ab60a).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #209 +/- ## ======================================= Coverage 61.78% 61.78% ======================================= Files 2 2 Lines 785 785 ======================================= Hits 485 485 Misses 249 249 Partials 51 51 ``` | [Flag](https://app.codecov.io/gh/Kuadrant/authorino-operator/pull/209/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Kuadrant) | Coverage Δ | | |---|---|---| | [unit](https://app.codecov.io/gh/Kuadrant/authorino-operator/pull/209/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Kuadrant) | `61.78% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Kuadrant#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.