diff --git a/mlflow/Chart.yaml b/mlflow/Chart.yaml index 3cd108c..9ba6a93 100644 --- a/mlflow/Chart.yaml +++ b/mlflow/Chart.yaml @@ -7,5 +7,5 @@ maintainers: - email: contact@larribas.me name: Lorenzo Arribas type: application -version: 1.0.1 +version: 1.0.2 appVersion: 1.7.2 diff --git a/mlflow/templates/deployment.yaml b/mlflow/templates/deployment.yaml index d4b64a4..264a00c 100644 --- a/mlflow/templates/deployment.yaml +++ b/mlflow/templates/deployment.yaml @@ -46,13 +46,19 @@ spec: {{- range $key, $value := .Values.extraArgs }} - --{{ $key }}={{ $value }} {{- end }} - {{- if .Values.backendStore.postgres }} + {{- if or .Values.backendStore.postgres .Values.env}} env: - name: SECRET_PASSWORD valueFrom: secretKeyRef: name: {{ include "mlflow.postgresSecretName" . }} key: password + {{- if .Values.env}} + {{- range $key, $value := .Values.env }} + - name: {{ $key }} + value: {{ $value }} + {{- end }} + {{- end }} {{- end }} ports: - name: http diff --git a/mlflow/values.yaml b/mlflow/values.yaml index 757a476..9701fec 100644 --- a/mlflow/values.yaml +++ b/mlflow/values.yaml @@ -5,11 +5,15 @@ backendStore: # backendStore.postgres -- A map with the values for (username, password, host, port and database). postgres: - # username: - # password: - # host: - # port: - # database: +# username: +# password: +# host: +# port: +# database: + +env: + AWS_ACCESS_KEY_ID: XXX + AWS_SECRET_ACCESS_KEY: XXX # defaultArtifactRoot -- A local or remote filepath (e.g. s3://my-bucket). It is mandatory when specifying a database backend store defaultArtifactRoot: