Skip to content

Commit

Permalink
feat: Add resources on init_container section
Browse files Browse the repository at this point in the history
Signed-off-by: fogelman <[email protected]>
  • Loading branch information
fogelman committed Jan 3, 2023
1 parent 1865722 commit 3a057b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/airflow/templates/_helpers/pods.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3a057b4

Please sign in to comment.