diff --git a/bitnami/mlflow/CHANGELOG.md b/bitnami/mlflow/CHANGELOG.md index 6775899b8f..5e20efd182 100644 --- a/bitnami/mlflow/CHANGELOG.md +++ b/bitnami/mlflow/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog -## 1.2.3 (2024-06-03) +## 1.3.0 (2024-06-04) -* [bitnami/mlflow] fix always image warning ([#26472](https://github.com/bitnami/charts/pull/26472)) +* [bitnami/mlflow] feat: Allow database dialects of external database to be configured ([#25965](https://github.com/bitnami/charts/pull/25965)) + +## 1.2.3 (2024-06-04) + +* [bitnami/mlflow] fix always image warning (#26472) ([0b7d009](https://github.com/bitnami/charts/commit/0b7d009b3736199f12a708b946d7e90b2383ce94)), closes [#26472](https://github.com/bitnami/charts/issues/26472) ## 1.2.2 (2024-05-28) diff --git a/bitnami/mlflow/Chart.yaml b/bitnami/mlflow/Chart.yaml index 09c175e1b1..3937c9e16e 100644 --- a/bitnami/mlflow/Chart.yaml +++ b/bitnami/mlflow/Chart.yaml @@ -44,4 +44,4 @@ sources: - https://github.com/bitnami/charts/tree/main/bitnami/mlflow - https://github.com/bitnami/containers/tree/main/bitnami/mlflow - https://github.com/mlflow/mlflow -version: 1.2.3 +version: 1.3.0 diff --git a/bitnami/mlflow/README.md b/bitnami/mlflow/README.md index 0f30930dd8..1bd4480dd0 100644 --- a/bitnami/mlflow/README.md +++ b/bitnami/mlflow/README.md @@ -416,6 +416,7 @@ The command deploys mlflow on the Kubernetes cluster in the default configuratio | Name | Description | Value | | -------------------------------------------- | ----------------------------------------------------------------------- | ------------- | +| `externalDatabase.dialectDriver` | Database Dialect(+Driver) | `postgresql` | | `externalDatabase.host` | Database host | `""` | | `externalDatabase.port` | Database port number | `5432` | | `externalDatabase.user` | Non-root username | `postgres` | diff --git a/bitnami/mlflow/templates/_helpers.tpl b/bitnami/mlflow/templates/_helpers.tpl index c4f8dadef4..bbe74694b6 100644 --- a/bitnami/mlflow/templates/_helpers.tpl +++ b/bitnami/mlflow/templates/_helpers.tpl @@ -392,6 +392,17 @@ Return the PostgreSQL Hostname {{- end -}} {{- end -}} +{{/* +Return the Database Dialect(+Driver) +*/}} +{{- define "mlflow.v0.database.dialectDriver" -}} +{{- if .Values.postgresql.enabled -}} + {{- print "postgresql" -}} +{{- else -}} + {{- print .Values.externalDatabase.dialectDriver -}} +{{- end -}} +{{- end -}} + {{/* Return the PostgreSQL Hostname */}} @@ -499,7 +510,7 @@ Retrieve the URI of the database Retrieve the URI of the auth database */}} {{- define "mlflow.v0.database-auth.uri" -}} -{{- printf "postgresql://%s:$(MLFLOW_DATABASE_PASSWORD)@%s:%v/%s" (include "mlflow.v0.database.user" .) (include "mlflow.v0.database.host" .) (include "mlflow.v0.database.port" .) (include "mlflow.v0.database-auth.name" .) -}} +{{- printf "%s://%s:$(MLFLOW_DATABASE_PASSWORD)@%s:%v/%s" (include "mlflow.v0.database.dialectDriver" .) (include "mlflow.v0.database.user" .) (include "mlflow.v0.database.host" .) (include "mlflow.v0.database.port" .) (include "mlflow.v0.database-auth.name" .) -}} {{- end -}} {{/* diff --git a/bitnami/mlflow/values.schema.json b/bitnami/mlflow/values.schema.json index fd1503d0c4..87ac82d47b 100644 --- a/bitnami/mlflow/values.schema.json +++ b/bitnami/mlflow/values.schema.json @@ -1955,6 +1955,12 @@ "externalDatabase": { "type": "object", "properties": { + "dialectDriver": { + "type": "string", + "description": "Database dialect(+driver)", + "default": "postgresql", + "pattern": "^(mysql|mssql|sqlite|postgresql)(\\+\\w+)?$" + }, "host": { "type": "string", "description": "Database host", @@ -2148,4 +2154,4 @@ } } } -} \ No newline at end of file +} diff --git a/bitnami/mlflow/values.yaml b/bitnami/mlflow/values.yaml index fc3e36c0fb..885d05eb7a 100644 --- a/bitnami/mlflow/values.yaml +++ b/bitnami/mlflow/values.yaml @@ -1330,6 +1330,7 @@ postgresql: PGPASSWORD=$POSTGRES_POSTGRES_PASSWORD psql -U postgres <<< "ALTER DATABASE {{ include "mlflow.v0.database-auth.name" . }} OWNER TO {{ .Values.auth.username }}" ## @section External PostgreSQL configuration ## All of these values are only used when postgresql.enabled is set to false +## @param externalDatabase.dialectDriver Database Dialect(+Driver) ## @param externalDatabase.host Database host ## @param externalDatabase.port Database port number ## @param externalDatabase.user Non-root username @@ -1340,6 +1341,7 @@ postgresql: ## @param externalDatabase.existingSecretPasswordKey Name of an existing secret key containing the database credentials ## externalDatabase: + dialectDriver: "postgresql" host: "" port: 5432 user: postgres