api
api copied to clipboard
WIP: add Release version as an optional field in the CSV
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign perdasilva for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
Codecov Report
:x: Patch coverage is 47.61905% with 22 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 37.78%. Comparing base (d6a5128) to head (4f11d6e).
:warning: Report is 3 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #454 +/- ##
==========================================
+ Coverage 37.71% 37.78% +0.07%
==========================================
Files 56 57 +1
Lines 4516 4557 +41
==========================================
+ Hits 1703 1722 +19
- Misses 2661 2678 +17
- Partials 152 157 +5
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Respects the legacy ability to encode a release version implicitly in semver build metadata when adding a bundle-level olm.substitutesFor annotation by detecting the presence annotation in the bundle, and extracting the build metadata as a release version.
Before:
./bin/opm render registry.redhat.io/amq7/amq-broker-rhel8-operator-bundle@sha256:ce274a661f64f3b872b69f2c5b6f6c93f841f456037f69b813ede777c944489b -o yaml | yq 'select(.schema == "olm.bundle").properties[]| select(.type == "olm.package")'
type: olm.package
value:
packageName: amq-broker-rhel8
version: 7.10.2-opr-2+0.1676475747.p
After:
./bin/opm render registry.redhat.io/amq7/amq-broker-rhel8-operator-bundle@sha256:ce274a661f64f3b872b69f2c5b6f6c93f841f456037f69b813ede777c944489b -o yaml | yq 'select(.schema == "olm.bundle").properties[]| select(.type == "olm.package")'
type: olm.package
value:
packageName: amq-broker-rhel8
release: 0.1676475747.p
version: 7.10.2-opr-2
I'm clearing the WIP because I'm hoping to get some reviews/eyes here, but I'm putting on a hold because we want to control the sequence of merges for this and related PRs.
/hold
Want to note here that all the off- and on-cluster tooling in o-f and known derivatives is set to unmarshal with tolerance for unknown fields, so the use of this feature with old tooling will result in the field getting dropped/ignored, not a functional impact.
/hold cancel
opening the floodgates to reviewers ;)
cc /assign @Xia-Zhao-rh