Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL CREATE SCHEMA support #181

Merged
merged 4 commits into from
Jun 10, 2024

Conversation

chlunde
Copy link
Contributor

@chlunde chlunde commented Jun 9, 2024

  • Schema controller for PostgreSQL
  • Generate files for PostgreSQL Schema
  • Expand PostgreSQL config example to include secret and ssl mode, docker info
  • Avoid new(string) and use nicer ptr.To values in test

Description of your changes

Updates #51 - but this does not solve the same issue. I think that talks about any DDL, this change talks specifically about SQL SCHEMA. I think the other idea should use a different CRD than Schema, rather than changing this :)

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

  • Unit tests
  • Created pg docker container

@Duologic
Copy link
Member

merged #182

chlunde and others added 4 commits June 10, 2024 10:08
This adds support for CREATE SCHEMA (not any DDL like Schema hero).
This is needed to run third party solutions that require the schema
to exist, like grafana operator and temporal operator.

Co-authored-by: Lars Haugan <456305+larhauga@users.noreply.github.com>
Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>
Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>
…er info

Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>
Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>
@chlunde
Copy link
Contributor Author

chlunde commented Jun 10, 2024

@Duologic rebased

@Duologic Duologic merged commit 15b7298 into crossplane-contrib:master Jun 10, 2024
7 checks passed
@chlunde chlunde deleted the postgresql-schema branch June 10, 2024 08:36
mariusziemke pushed a commit to edudip/provider-sql that referenced this pull request Jun 10, 2024
* Schema controller for PostgreSQL

This adds support for CREATE SCHEMA (not any DDL like Schema hero).
This is needed to run third party solutions that require the schema
to exist, like grafana operator and temporal operator.

Co-authored-by: Lars Haugan <456305+larhauga@users.noreply.github.com>
Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>

* Generate files for PostgreSQL Schema

Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>

* Expand PostgreSQL config example to include secret and ssl mode, docker info

Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>

* Avoid new(string) and use nicer ptr.To values in test

Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>

---------

Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>
Co-authored-by: Lars Haugan <456305+larhauga@users.noreply.github.com>
@Ben10k
Copy link

Ben10k commented Jul 2, 2024

Hello, can a new release be created, as this is already merged into the master branch?

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.

3 participants