crossplane-contrib / provider-sql

An SQL provider for @crossplane
https://crossplane.io
Apache License 2.0
100 stars 57 forks source link

Support MySQL `WITH GRANT OPTION` (cherry-picks #132) #148

Closed jvrplmlmn closed 11 months ago

jvrplmlmn commented 11 months ago

Description of your changes

Fixes #128

This PR cherry-picks the commits from #132 (all credit goes to the author) and fixes the merge conflicts with master.

I have:

How has this code been tested

Quoting from https://github.com/crossplane-contrib/provider-sql/pull/132

Added unit tests to grant controller:

  • Observe method:
    • SuccessGrantOptionNoDatabase
    • SuccessGrantOptionWithDatabase
  • Create method:
    • SuccessGrantOption
  • Update method:
    • SuccessGrantOption