Skip to content

fix: DefaultPrivileges are not applied due to incorrect observer query - #460

Open
hsahmed wants to merge 1 commit into
crossplane-contrib:masterfrom
hsahmed:fix/default-priv-schema-role
Open

hsahmed wants to merge 1 commit into
crossplane-contrib:masterfrom
hsahmed:fix/default-priv-schema-role

Conversation

@hsahmed

@hsahmed hsahmed commented Sep 13, 2026

Copy link
Copy Markdown

Description of your changes

DefaultPrivileges reconciler's observe query didn't filter on schema and targetrole name thus returning Ready/Sync for DefaultPrivileges targeting different schemas and target roles as long as one default privilege existed for the role.

This PR updates the select query to make sure the specific DefaultPrivilege exists before returning Ready/Synced.

Fixes #458

I have:

  • Read and followed Crossplane's [contribution process].
  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Code has been tested manually, the change is simple and the issue is easily reproducible.

Signed-off-by: Hesham Ahmed <hesham@micronisus.com>
@hsahmed
hsahmed force-pushed the fix/default-priv-schema-role branch from 6d4107f to 292a1cb Compare September 14, 2026 03:36
@hsahmed

hsahmed commented Sep 14, 2026

Copy link
Copy Markdown
Author

@fernandezcuesta can you please review this PR (or the other one for the same issue #459).

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.

DefaultPrivileges except the first one are not applied but show ready/synced

1 participant