airflow-helm/charts

Resources for init container not specified into helpers/_pods.tpl

zippo761 opened this issue · 0 comments

Checks

Motivation

In my compary use strong rules into k8s production cluster that resource quota must be specified for every container. So every deploy without resources into init-containers i catch WARNING like this for every pods (that contain init-container/check-db/wait-for-db-migrations/install-pip-packages:
image_2023-12-04_19-40-54

Implementation

Im propose specified resource into template charts/airflow/templates/_helpers/pods.tpl and fill values for template
somethink like this:

.Values.airflow.

# resource for check-db init container
checkDb:
  resources: {}

# resource for wait-for-db-migrations container
waitForDbMigrations:
  resources: {}

# resource for install-pip-packages container
installPipPackages:
  resources: {} 

and users after this update use only values for avoid this warning

Are you willing & able to help?

  • I am able to submit a PR!
  • I can help test the feature!