Skip to content

Conversation

nateinaction
Copy link
Contributor

@nateinaction nateinaction commented Aug 22, 2025

Description of your changes

Resolves #262

This PR upgrades provider-sql to crossplane v2 with new namespaced CRs

Added:

  • Namespaced MRs!
  • ClusterProviderConfig for referencing cluster scoped provider configs from namespaced resources

Changed:

  • apis, controllers and examples now have scoped subdirectories as cluster and namespaced
  • handwritten resource resolvers have been replaced with ones generated by angryjet

⚠️ Removed:

  • External Secret Store support is removed from ALL MRs (spec.publishConnectionDetailsTo is removed). This feature was alpha and it was decided to be removed from crossplane.

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

Only MySQL changes have been tested manually:

k get user.mysql.sql.crossplane.io
NAME                 READY   SYNCED   AGE
cluster-mysql-user   True    True     7s
k get users.mysql.sql.m.crossplane.io
NAME             READY   SYNCED   AGE
cpc-mysql-user   True    True     16s
ns-user          True    True     16s

fernandezcuesta and others added 27 commits September 9, 2025 13:42
…#236)

* chore: remove duplicate entry of golangci version

Signed-off-by: Jesús Fernández <[email protected]>

* chore: bump up versions for crossplane 1.20

Signed-off-by: Jesús Fernández <[email protected]>

* chore: restore changes

Signed-off-by: Jesús Fernández <[email protected]>

---------

Signed-off-by: Jesús Fernández <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Monthly should be often enough for this project, we can cover security
updates separately.

I have ignored k8s.io packages as they should match what crossplane-runtime
uses.

Signed-off-by: Ty Christensen <[email protected]>
…contrib#250)

Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](google/go-cmp@v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
  dependency-version: 0.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Ty Christensen <[email protected]>
…plane-contrib#248)

Bumps [github.com/DATA-DOG/go-sqlmock](https://github.com/DATA-DOG/go-sqlmock) from 1.5.0 to 1.5.2.
- [Release notes](https://github.com/DATA-DOG/go-sqlmock/releases)
- [Commits](DATA-DOG/go-sqlmock@v1.5.0...v1.5.2)

---
updated-dependencies:
- dependency-name: github.com/DATA-DOG/go-sqlmock
  dependency-version: 1.5.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Ty Christensen <[email protected]>
…ntrib#243)

I've disabled the backport and commands workflow as backports
and patch releases are not something we're doing at the moment.

Signed-off-by: Ty Christensen <[email protected]>
…b#247)

Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.8.0 to 1.10.9.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](lib/pq@v1.8.0...v1.10.9)

---
updated-dependencies:
- dependency-name: github.com/lib/pq
  dependency-version: 1.10.9
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Ty Christensen <[email protected]>
…rib#255)

This was a breaking change which was not strictly required. Make the
field optional again so we don't cause any uneccesary breaking changes
for users upgrading from 0.7.0.

Thanks to @cm3brian for the report!

Fixes crossplane-contrib#241

Signed-off-by: Carl Henrik Lunde <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Nate Gay <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Nate Gay <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Nate Gay <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Nate Gay <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Nate Gay <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Nate Gay <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Nate Gay <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Nate Gay <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Nate Gay <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Nate Gay <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Nate Gay <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
nateinaction and others added 5 commits September 9, 2025 13:50
Signed-off-by: Nate Gay <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Nate Gay <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
Signed-off-by: Ty Christensen <[email protected]>
@nateinaction nateinaction mentioned this pull request Sep 10, 2025
2 tasks
@nateinaction
Copy link
Contributor Author

Opting for #267. Closing.

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.

Add support for v2 (Namespaced resources)
4 participants