Skip to content

Commit

Permalink
Fix wrong volume setting from the secret
Browse files Browse the repository at this point in the history
Signed-off-by: Burak Ince <burak.ince@linux.org.tr>
  • Loading branch information
burakince committed Jan 17, 2025
1 parent ac394bf commit cea87b1
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/mlflow/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.9.1
version: 0.10.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down Expand Up @@ -58,7 +58,7 @@ annotations:
url: https://github.com/burakince/mlflow
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/changes: |
- Change multiple json types to single type for artifacthub support
- Fix wrong volume setting from secret
artifacthub.io/images: |
- name: mlflow
image: burakince/mlflow:2.19.0
Expand Down
6 changes: 5 additions & 1 deletion charts/mlflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A Helm chart for Mlflow open source platform for the machine learning lifecycle

![Version: 0.9.1](https://img.shields.io/badge/Version-0.9.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.19.0](https://img.shields.io/badge/AppVersion-2.19.0-informational?style=flat-square)
![Version: 0.10.0](https://img.shields.io/badge/Version-0.10.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.19.0](https://img.shields.io/badge/AppVersion-2.19.0-informational?style=flat-square)

## Get Helm Repository Info

Expand Down Expand Up @@ -221,13 +221,17 @@ artifactRoot:
```yaml
auth:
enabled: true
adminUsername: "admin"
adminPassword: "S3cr3+"
```
Use following configuration for centralised PosgreSQL DB backend for authentication backend.
```yaml
auth:
enabled: true
adminUsername: "admin"
adminPassword: "S3cr3+"
postgres:
enabled: true
host: "postgresql--auth-instance1.abcdef1234.eu-central-1.rds.amazonaws.com"
Expand Down
4 changes: 4 additions & 0 deletions charts/mlflow/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,17 @@ artifactRoot:
```yaml
auth:
enabled: true
adminUsername: "admin"
adminPassword: "S3cr3+"
```

Use following configuration for centralised PosgreSQL DB backend for authentication backend.

```yaml
auth:
enabled: true
adminUsername: "admin"
adminPassword: "S3cr3+"
postgres:
enabled: true
host: "postgresql--auth-instance1.abcdef1234.eu-central-1.rds.amazonaws.com"
Expand Down
2 changes: 1 addition & 1 deletion charts/mlflow/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ spec:
{{- if .Values.auth.enabled }}
- name: auth-config-secret
secret:
name: {{ template "mlflow.fullname" . }}-auth-config-secret
secretName: {{ template "mlflow.fullname" . }}-auth-config-secret
{{- end }}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ should match snapshot with additional values:
name: migrations-config
- name: auth-config-secret
secret:
name: mlflow-auth-config-secret
secretName: mlflow-auth-config-secret
- name: mlflow-volume
persistentVolumeClaim:
claimName: mlflow-pv-volume
Expand Down
2 changes: 1 addition & 1 deletion charts/mlflow/unittests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ tests:
path: spec.template.spec.volumes[0].name
value: auth-config-secret
- equal:
path: spec.template.spec.volumes[0].secret.name
path: spec.template.spec.volumes[0].secret.secretName
value: mlflow-auth-config-secret

- it: should match snapshot of default values
Expand Down

0 comments on commit cea87b1

Please sign in to comment.