Skip to content

Example: Use WithDeterministicExternalName in ReconcilerOptions#333

Closed
nolancon wants to merge 3 commits intomainfrom
patched-runtime-demo-2
Closed

Example: Use WithDeterministicExternalName in ReconcilerOptions#333
nolancon wants to merge 3 commits intomainfrom
patched-runtime-demo-2

Conversation

@nolancon
Copy link
Collaborator

@nolancon nolancon commented Jun 6, 2025

Description of your changes

This PR is a demo of how crossplane/crossplane-runtime#841 can be used by a downstream crossplane provider.
Changes in this PR:

  • Use patched nolancon/crossplane-runtime
  • Remove existing workaround - this workaround is a best-effort attempt to remove the create-pending annotation after it has been applied. See detailed workaround description here.
  • Use WithDeterministicExternalName option to setup the Bucket Reconciler.

The test case here was specifically written to exercise the above workaround. By removing this workaround, and instead, making use of the new reconciler option in the patched version of crossplane-runtime - the desired effect is achieved and it is no longer on a "best-effort" basis. As demonstrated by passing Chainsaw tests under the new circumstances.

I have:

  • Run make reviewable to ensure this PR is ready for review.
  • Run make ceph-chainsaw to validate these changes against Ceph. This step is not always necessary. However, for changes related to S3 calls it is sensible to validate against an actual Ceph cluster. Localstack is used in our CI Chainsaw suite for convenience and there can be disparity in S3 behaviours betwee it and Ceph. See docs/TESTING.md for information on how to run tests against a Ceph cluster.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant