From 77376c3e6777c47f950f6fdc6d7e7bc6a8889f89 Mon Sep 17 00:00:00 2001 From: bbakker2 Date: Mon, 26 Aug 2024 09:36:29 +0200 Subject: [PATCH] [bitnami/airflow] add resources to loaddags initcontainer try 2 (#28992) * define resources for Load DAGs init-container Signed-off-by: Bastiaan Bakker * [bitnami/airflow] Release 19.0.3 Signed-off-by: Bastiaan Bakker * Update CHANGELOG.md Signed-off-by: Bitnami Containers * Update CHANGELOG.md Signed-off-by: Bitnami Containers --------- Signed-off-by: Bastiaan Bakker Signed-off-by: Bitnami Containers Co-authored-by: Bitnami Containers --- bitnami/airflow/CHANGELOG.md | 8 ++++++-- bitnami/airflow/Chart.yaml | 2 +- bitnami/airflow/templates/_helpers.tpl | 5 +++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/bitnami/airflow/CHANGELOG.md b/bitnami/airflow/CHANGELOG.md index a9c98f0f1da0f3..8de440d89b287f 100644 --- a/bitnami/airflow/CHANGELOG.md +++ b/bitnami/airflow/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog -## 19.0.2 (2024-08-22) +## 19.0.3 (2024-08-25) -* [bitnami/airflow] Release 19.0.2 ([#28971](https://github.com/bitnami/charts/pull/28971)) +* [bitnami/airflow] add resources to loaddags initcontainer try 2 ([#28992](https://github.com/bitnami/charts/pull/28992)) + +## 19.0.2 (2024-08-22) + +* [bitnami/airflow] Release 19.0.2 (#28971) ([c03dc2b](https://github.com/bitnami/charts/commit/c03dc2b82fa1fb4cddb1e6f90541463d61374713)), closes [#28971](https://github.com/bitnami/charts/issues/28971) ## 19.0.1 (2024-08-16) diff --git a/bitnami/airflow/Chart.yaml b/bitnami/airflow/Chart.yaml index 2b007c49472615..187a8989e8428c 100644 --- a/bitnami/airflow/Chart.yaml +++ b/bitnami/airflow/Chart.yaml @@ -47,4 +47,4 @@ maintainers: name: airflow sources: - https://github.com/bitnami/charts/tree/main/bitnami/airflow -version: 19.0.2 +version: 19.0.3 diff --git a/bitnami/airflow/templates/_helpers.tpl b/bitnami/airflow/templates/_helpers.tpl index 89ebdfd7d1eb46..67e39d67bfc436 100644 --- a/bitnami/airflow/templates/_helpers.tpl +++ b/bitnami/airflow/templates/_helpers.tpl @@ -214,6 +214,11 @@ Load DAGs init-container - -ec - | cp /configmap/* /dags + {{- if $compDefinition.resources }} + resources: {{- toYaml $compDefinition.resources | nindent 4 }} + {{- else if ne $compDefinition.resourcesPreset "none" }} + resources: {{- include "common.resources.preset" (dict "type" $compDefinition.resourcesPreset) | nindent 4 }} + {{- end }} volumeMounts: - name: empty-dir mountPath: /tmp