Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

change internal object name to "backstage-<cr-name>" #356

Merged

Conversation

gazarenkov
Copy link
Member

@gazarenkov gazarenkov commented May 8, 2024

Swapped managed object names from "-backstage" to "backstage-" to make it compatible with 1.1 OOTB

Fixes #355
Fixes https://issues.redhat.com/browse/RHIDP-2278

@rm3l
Copy link
Member

rm3l commented May 8, 2024

/cc

@openshift-ci openshift-ci bot requested a review from rm3l May 8, 2024 09:13
Copy link
Member

@rm3l rm3l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but the DB hostname needs to be changed in the following example: https://github.com/janus-idp/operator/blob/main/examples/bs-existing-secret.yaml

Otherwise, the E2E tests are failing, due to the app pod not being able to start (from the logs: ForwardedError: Plugin 'permission' startup failed; caused by Error: Failed to connect to the database to make sure that 'backstage_plugin_permission' exists, Error: getaddrinfo ENOTFOUND bs-existing-secret-backstage-db):

$ make test-e2e IMG=quay.io/janus-idp/operator:0.2.0-pr-356-59f36eb

[...]
Summarizing 1 Failure:
  [FAIL] Backstage Operator E2E Examples CRs when applying with custom DB auth secret (examples/bs-existing-secret.yaml) [It] should handle CR as expected
  /home/asoro/work/projects/backstage/janus-idp/operator/tests/e2e/e2e_test.go:192

Ran 5 of 5 Specs in 813.293 seconds
FAIL! -- 4 Passed | 1 Failed | 0 Pending | 0 Skipped
--- FAIL: TestE2E (813.29s)
FAIL

Ginkgo ran 1 suite in 13m36.113282877s

Test Suite Failed
make: *** [Makefile:409: test-e2e] Error 1

Signed-off-by: gazarenkov <[email protected]>
Copy link

sonarqubecloud bot commented May 9, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.6% Duplication on New Code

See analysis details on SonarCloud

@rm3l rm3l self-requested a review May 13, 2024 07:33
Copy link
Member

@rm3l rm3l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@openshift-ci openshift-ci bot added the lgtm PR is ready to be merged. Required by Prow. label May 13, 2024
Copy link

openshift-ci bot commented May 13, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rm3l

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved PR has been approved by an approver from all required OWNERS files. Required by Prow. label May 13, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit c154534 into janus-idp:main May 13, 2024
8 checks passed
@gazarenkov gazarenkov deleted the compatible-object-names branch June 6, 2024 09:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved PR has been approved by an approver from all required OWNERS files. Required by Prow. lgtm PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potential breaking change between 1.1.x and main (1.2) for the default Route URL naming pattern
2 participants