Repository navigation
Remove operator version-tolerant workaround - #53065
Conversation
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.actions.TermsAndConditionsTest#termsAcceptedKeycloak CI - Forms IT (firefox) org.keycloak.testsuite.actions.TermsAndConditionsTest#termsDeclinedAccountKeycloak CI - Forms IT (firefox) |
Co-authored-by: shawkins <2475669+shawkins@users.noreply.github.com>
Co-authored-by: shawkins <2475669+shawkins@users.noreply.github.com>
There was a problem hiding this comment.
LGTM, the test is overkill but it's fine to have it to guard against a regression.
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The upstream SDK behavior matches the removed workaround, and focused tests cover both affected non-CRUD dependents.
Review effort: Balanced
Findings: None
What changed in this PR
Removes the operator’s local version-tolerant owner-reference workaround in favor of the equivalent upstream Java Operator SDK behavior.
Changes:
- Replace the custom CRUD base class with the standard SDK implementation.
- Remove custom mapper overrides and add focused legacy owner-reference tests.
| File | Description |
|---|---|
OwnerReferenceMappingTest.java |
Tests legacy mappings for admin secrets and realm-import jobs. |
VersionTolerantCRUDKubernetesDependentResource.java |
Removes the obsolete compatibility class. |
KeycloakUpdateJobDependentResource.java |
Uses the SDK CRUD base class. |
KeycloakServiceMonitorDependentResource.java |
Uses the SDK CRUD base class. |
KeycloakServiceDependentResource.java |
Uses the SDK CRUD base class. |
KeycloakRealmImportSecretDependentResource.java |
Uses the SDK CRUD base class. |
KeycloakRealmImportJobDependentResource.java |
Removes the custom mapper override. |
KeycloakNetworkPolicyDependentResource.java |
Uses the SDK CRUD base class. |
KeycloakIngressDependentResource.java |
Uses the SDK CRUD base class. |
KeycloakDiscoveryServiceDependentResource.java |
Uses the SDK CRUD base class. |
KeycloakDeploymentDependentResource.java |
Uses the SDK CRUD base class. |
KeycloakAdminSecretDependentResource.java |
Removes the custom mapper override. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
8e43743 to
87327cf
Compare
The operator still carried a local ownerReference apiVersion workaround that was added until the Java Operator SDK fix became available. This change drops that local compatibility layer and relies on the SDK’s upstream secondary-to-primary mapping behavior.
Description
VersionTolerantCRUDKubernetesDependentResource.CRUDKubernetesDependentResource.Coverage
SecretJobExample