From c5eb6988a947776a8596e7bae172bdc0a0494c27 Mon Sep 17 00:00:00 2001 From: Johannes- Date: Mon, 30 Jun 2025 16:12:26 +0200 Subject: [PATCH] [bitnami/mlflow] Adds resources to init containers (#33910) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [bitnami/mlflow] feat: add resources to init containers Signed-off-by: Johannes Voscort * [bitnami/mlflow]: bump chart version Signed-off-by: Johannes Voscort * Update CHANGELOG.md Signed-off-by: Bitnami Bot * Update CHANGELOG.md Signed-off-by: Bitnami Bot * Update CHANGELOG.md Signed-off-by: Bitnami Bot * Update CHANGELOG.md Signed-off-by: Bitnami Bot --------- Signed-off-by: Johannes Voscort Signed-off-by: Bitnami Bot Signed-off-by: Johannes- Signed-off-by: Carlos Rodríguez Hernández Signed-off-by: Alvaro Neira Ayuso Co-authored-by: Bitnami Bot Co-authored-by: Carlos Rodríguez Hernández Co-authored-by: Alvaro Neira Ayuso --- bitnami/mlflow/CHANGELOG.md | 8 ++++-- bitnami/mlflow/Chart.yaml | 2 +- bitnami/mlflow/templates/_helpers.tpl | 35 +++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 3 deletions(-) diff --git a/bitnami/mlflow/CHANGELOG.md b/bitnami/mlflow/CHANGELOG.md index 047082dc84..f7e9280db3 100644 --- a/bitnami/mlflow/CHANGELOG.md +++ b/bitnami/mlflow/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog -## 5.0.6 (2025-06-30) +## 5.1.0 (2025-06-30) -* [bitnami/mlflow] :zap: :arrow_up: Update dependency references ([#34718](https://github.com/bitnami/charts/pull/34718)) +* [bitnami/mlflow] Adds resources to init containers ([#33910](https://github.com/bitnami/charts/pull/33910)) + +## 5.0.6 (2025-06-30) + +* [bitnami/mlflow] :zap: :arrow_up: Update dependency references (#34718) ([9f0041b](https://github.com/bitnami/charts/commit/9f0041bad7245a4b6bd59923cf0fbaaf08cc8dc2)), closes [#34718](https://github.com/bitnami/charts/issues/34718) ## 5.0.5 (2025-06-30) diff --git a/bitnami/mlflow/Chart.yaml b/bitnami/mlflow/Chart.yaml index fa397d6b85..dd1522555a 100644 --- a/bitnami/mlflow/Chart.yaml +++ b/bitnami/mlflow/Chart.yaml @@ -47,4 +47,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: 5.0.6 +version: 5.1.0 diff --git a/bitnami/mlflow/templates/_helpers.tpl b/bitnami/mlflow/templates/_helpers.tpl index df6971d3a0..15938ff33b 100644 --- a/bitnami/mlflow/templates/_helpers.tpl +++ b/bitnami/mlflow/templates/_helpers.tpl @@ -144,6 +144,11 @@ Init container definition for copying the certificates mountPath: /tmp/certs - name: mlflow-certificates mountPath: /bitnami/mlflow/certs + {{- if .Values.tracking.resources }} + resources: {{- toYaml .Values.tracking.resources | nindent 4 }} + {{- else if ne .Values.tracking.resourcesPreset "none" }} + resources: {{- include "common.resources.preset" (dict "type" .Values.tracking.resourcesPreset) | nindent 4 }} + {{- end }} {{- end }} {{/* @@ -167,6 +172,11 @@ Init container definition for waiting for the database to be ready mountPath: /tmp - name: rendered-basic-auth mountPath: /bitnami/rendered-basic-auth + {{- if .Values.tracking.resources }} + resources: {{- toYaml .Values.tracking.resources | nindent 4 }} + {{- else if ne .Values.tracking.resourcesPreset "none" }} + resources: {{- include "common.resources.preset" (dict "type" .Values.tracking.resourcesPreset) | nindent 4 }} + {{- end }} - name: render-auth-conf image: {{ include "mlflow.v0.waitContainer.image" . }} imagePullPolicy: {{ .Values.waitContainer.image.pullPolicy }} @@ -231,6 +241,11 @@ Init container definition for waiting for the database to be ready mountPath: /bitnami/basic-auth-overrides - name: rendered-basic-auth mountPath: /bitnami/rendered-basic-auth + {{- if .Values.tracking.resources }} + resources: {{- toYaml .Values.tracking.resources | nindent 4 }} + {{- else if ne .Values.tracking.resourcesPreset "none" }} + resources: {{- include "common.resources.preset" (dict "type" .Values.tracking.resourcesPreset) | nindent 4 }} + {{- end }} {{- end -}} {{/* @@ -258,6 +273,11 @@ Init container definition for upgrading the database volumeMounts: - name: tmp mountPath: /tmp + {{- if .Values.tracking.resources }} + resources: {{- toYaml .Values.tracking.resources | nindent 4 }} + {{- else if ne .Values.tracking.resourcesPreset "none" }} + resources: {{- include "common.resources.preset" (dict "type" .Values.tracking.resourcesPreset) | nindent 4 }} + {{- end }} {{- end -}} {{/* @@ -288,6 +308,11 @@ Init container definition for upgrading the database volumeMounts: - name: tmp mountPath: /tmp + {{- if .Values.tracking.resources }} + resources: {{- toYaml .Values.tracking.resources | nindent 4 }} + {{- else if ne .Values.tracking.resourcesPreset "none" }} + resources: {{- include "common.resources.preset" (dict "type" .Values.tracking.resourcesPreset) | nindent 4 }} + {{- end }} {{- end -}} {{/* @@ -717,6 +742,11 @@ Return the definition of the git clone init container {{- if .Values.run.source.git.extraVolumeMounts }} {{- include "common.tplvalues.render" (dict "value" .Values.run.source.git.extraVolumeMounts "context" .) | nindent 12 }} {{- end }} + {{- if .Values.run.resources }} + resources: {{- toYaml .Values.run.resources | nindent 4 }} + {{- else if ne .Values.run.resourcesPreset "none" }} + resources: {{- include "common.resources.preset" (dict "type" .Values.run.resourcesPreset) | nindent 4 }} + {{- end }} {{- end -}} {{/* @@ -769,6 +799,11 @@ Init container definition for waiting for the database to be ready volumeMounts: - name: tmp mountPath: /tmp + {{- if .context.Values.run.resources }} + resources: {{- toYaml .context.Values.run.resources | nindent 4 }} + {{- else if ne .context.Values.run.resourcesPreset "none" }} + resources: {{- include "common.resources.preset" (dict "type" .context.Values.run.resourcesPreset) | nindent 4 }} + {{- end }} {{- end -}} {{/*