From 3a057b4a87c0e5005853ab56e52c0359ba53dc7f Mon Sep 17 00:00:00 2001 From: fogelman <26471046+fogelman@users.noreply.github.com> Date: Tue, 3 Jan 2023 10:00:43 -0300 Subject: [PATCH] feat: Add resources on init_container section Signed-off-by: fogelman <26471046+fogelman@users.noreply.github.com> --- charts/airflow/templates/_helpers/pods.tpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/airflow/templates/_helpers/pods.tpl b/charts/airflow/templates/_helpers/pods.tpl index 0e5bdd8b..80aca5a3 100644 --- a/charts/airflow/templates/_helpers/pods.tpl +++ b/charts/airflow/templates/_helpers/pods.tpl @@ -60,6 +60,8 @@ EXAMPLE USAGE: {{ include "airflow.init_container.check_db" (dict "Release" .Rel {{- define "airflow.init_container.check_db" }} - name: check-db {{- include "airflow.image" . | indent 2 }} + resources: + {{- toYaml .resources | nindent 4 }} envFrom: {{- include "airflow.envFrom" . | indent 4 }} env: @@ -87,6 +89,8 @@ EXAMPLE USAGE: {{ include "airflow.init_container.wait_for_db_migrations" (dict {{- define "airflow.init_container.wait_for_db_migrations" }} - name: wait-for-db-migrations {{- include "airflow.image" . | indent 2 }} + resources: + {{- toYaml .resources | nindent 4 }} envFrom: {{- include "airflow.envFrom" . | indent 4 }} env: @@ -164,6 +168,8 @@ EXAMPLE USAGE: {{ include "airflow.init_container.install_pip_packages" (dict "R {{- define "airflow.init_container.install_pip_packages" }} - name: install-pip-packages {{- include "airflow.image" . | indent 2 }} + resources: + {{- toYaml .resources | nindent 4 }} envFrom: {{- include "airflow.envFrom" . | indent 4 }} env: