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

Helm chart: add support for MariaDB and MySQL backends #8554

Merged
merged 1 commit into from
May 23, 2024

Conversation

adutra
Copy link
Contributor

@adutra adutra commented May 21, 2024

Requires #8544.

Copy link
Member

@dimas-b dimas-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@@ -139,20 +139,31 @@ spec:
{{- end }}

{{- if or (eq .Values.versionStoreType "JDBC") (eq .Values.versionStoreType "TRANSACTIONAL") }}
- name: QUARKUS_DATASOURCE_USERNAME
{{- $oldConfig := .Values.postgres | default dict }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I trust you and @dimas-b on the helm/go magic happening here :)

postgres:
# -- The Postgres JDBC connection string.
# JDBC datasource settings. Only required when using JDBC version store type; ignored otherwise.
jdbc:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a breaking change for existing users?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for the secrets-stuff below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't: the old postgres section is still honored thanks to the "helm magic" ;-)

IOW you can do this:

 helm install nessie -n nessie-ns helm/nessie --debug --dry-run \
  --set versionStoreType=JDBC  \
  --set postgres.jdbcUrl=jdbc:postgresql://foo/bar \
  --set postgres.secret.password=old-password-key

And it will merge the old postgres.xyz values with the new defaults coming from jdbc.xyz:

- name: NESSIE_VERSION_STORE_PERSIST_JDBC_DATASOURCE
  value: postgresql
- name: QUARKUS_DATASOURCE_POSTGRESQL_USERNAME
  valueFrom:
    secretKeyRef:
      name: datasource-creds
      key: username
- name: QUARKUS_DATASOURCE_POSTGRESQL_PASSWORD
  valueFrom:
    secretKeyRef:
      name: datasource-creds
      key: old-password-key
- name: QUARKUS_DATASOURCE_POSTGRESQL_JDBC_URL
  value: jdbc:postgresql://foo/bar

2. Migrate any property under `quarkus.datasource.*` to `quarkus.datasource.postgresql.*`. Support
for the old `quarkus.datasource.*` properties will be removed in a future release.
- For the same reason, the Nessie Helm chart has been updated. The old `postgres` section is now
called `jdbc`. Existing Helm chart configurations should be updated accordingly, e.g.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs to be added to Breaking changes below as well

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still want this under the "Breaking Changes" section? From my POV it's not required since we still support old properties through "helm magic" :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as the old ones work (without Helm & its magic), that's fine for me.

@snazy snazy requested a review from dimas-b May 23, 2024 08:57
@adutra adutra marked this pull request as ready for review May 23, 2024 09:38
@adutra adutra changed the title [WIP] Helm chart: add support for MariaDB and MySQL backends Helm chart: add support for MariaDB and MySQL backends May 23, 2024
@adutra adutra merged commit d5c2d0c into projectnessie:main May 23, 2024
16 checks passed
@adutra adutra deleted the mysql-support-helm branch May 23, 2024 15:21
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.

None yet

3 participants