diff --git a/charts/library-chart/Chart.yaml b/charts/library-chart/Chart.yaml index a6d97c72..9f582ad5 100644 --- a/charts/library-chart/Chart.yaml +++ b/charts/library-chart/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 name: library-chart -version: 1.5.16 +version: 1.5.17 type: library diff --git a/charts/library-chart/README.md b/charts/library-chart/README.md index 23c74674..482bf782 100644 --- a/charts/library-chart/README.md +++ b/charts/library-chart/README.md @@ -1,6 +1,6 @@ # library-chart -![Version: 1.5.16](https://img.shields.io/badge/Version-1.5.16-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) +![Version: 1.5.17](https://img.shields.io/badge/Version-1.5.17-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) ---------------------------------------------- Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) diff --git a/charts/library-chart/templates/_secret.tpl b/charts/library-chart/templates/_secret.tpl index c3c672c6..ff0c17bd 100644 --- a/charts/library-chart/templates/_secret.tpl +++ b/charts/library-chart/templates/_secret.tpl @@ -119,6 +119,9 @@ stringData: {{- if (index $secret "metadata" "annotations") -}} {{- if and (index $secret "metadata" "annotations" "onyxia/discovery") (eq "mlflow" (index $secret "metadata" "annotations" "onyxia/discovery" | toString)) -}} {{- $uri:= ( index $secret.data "uri" | default "") | b64dec -}} +{{- $mlflow_tracking_username:= ( index $secret.data "MLFLOW_TRACKING_USERNAME" | default "") | b64dec -}} +{{- $mlflow_tracking_password:= ( index $secret.data "MLFLOW_TRACKING_PASSWORD" | default "") | b64dec -}} + apiVersion: v1 kind: Secret metadata: @@ -126,8 +129,14 @@ metadata: labels: {{- include "library-chart.labels" $context | nindent 4 }} stringData: +{{- if $uri }} MLFLOW_TRACKING_URI: {{ printf "%s" $uri }} {{- end }} +{{- if and $mlflow_tracking_username $mlflow_tracking_password }} + MLFLOW_TRACKING_USERNAME: {{ printf "%s" $mlflow_tracking_username }} + MLFLOW_TRACKING_PASSWORD: {{ printf "%s" $mlflow_tracking_password }} +{{- end }} +{{- end }} {{- end }} {{- end }} {{- end }}