Closed rm3l closed 5 months ago
@gazarenkov Thanks for the review comments. Apart from the added integration test (which I think makes sense as a way to guarantee the behavior and prevent further regression on this), I think it should be good. PTAL and approve if it is okay for you.
⚠️ Files changed in bundle generation!
Those changes to the operator bundle manifests should have been pushed automatically to your PR branch.
You might also need to manually update the .rhdh/bundle/manifests/rhdh-operator.csv.yaml
CSV file accordingly.
/cherry-pick 1.2.x
But putting on hold until https://github.com/janus-idp/operator/pull/376 is merged, to avoid the change to the CSV.
/hold
@rm3l: once the present PR merges, I will cherry-pick it on top of 1.2.x in a new PR and assign it to you.
Issues
3 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
2.0% Duplication on New Code
/hold cancel
Rebased onto main
, now that https://github.com/janus-idp/operator/pull/376 has been merged.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: gazarenkov
The full list of commands accepted by this bot can be found here.
The pull request process is described here
@rm3l: new pull request created: #377
Description
This fixes a critical issue where, when upgrading existing resources using an operator upgraded from 1.1 to 1.2 (
main
branch), the operator would create and use a brand new database StatefulSet. This would cause the upgraded Backstage application to boot using an empty database, rather than starting with the existing database (which could already contain some data).~It also fixes a more general issue where resource naming was not backward-compatible, which would create for example 2 different ConfigMaps after an upgrade: one named
backstage-dynamic-plugins-<cr>
(created by the operator on themain
branch) besides an already existing one named<cr>-dynamic-plugins
(created in 1.1), which could create some confusion when looking at the resources in the namespace.~Which issue(s) does this PR fix or relate to
PR acceptance criteria
rhdh-operator.csv.yaml
file accordinglyHow to test changes / Special notes to the reviewer
See the repro steps depicted in https://issues.redhat.com/browse/RHIDP-2432 and run the tests with the following command: