Skip to content

Commit

Permalink
[bitnami/airflow] Support extra customizations at setup-db job (#30624)
Browse files Browse the repository at this point in the history
  • Loading branch information
juan131 authored Nov 26, 2024
1 parent 7cd0bfa commit 0397460
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bitnami/airflow/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 22.3.0 (2024-11-26)

* [bitnami/airflow] Support extra customizations at setup-db job ([#30624](https://github.com/bitnami/charts/pull/30624))

## 22.2.0 (2024-11-19)

* [bitnami/airflow] Add support for extending default configuration ([#30525](https://github.com/bitnami/charts/pull/30525))
* [bitnami/airflow] Add support for extending default configuration (#30525) ([e84395d](https://github.com/bitnami/charts/commit/e84395d6c829a0fe56ca7242bdaa90afb8e0e352)), closes [#30525](https://github.com/bitnami/charts/issues/30525)

## 22.1.0 (2024-11-18)

Expand Down
2 changes: 1 addition & 1 deletion bitnami/airflow/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ maintainers:
name: airflow
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/airflow
version: 22.2.0
version: 22.3.0
3 changes: 3 additions & 0 deletions bitnami/airflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1039,6 +1039,9 @@ The Bitnami Airflow chart relies on the PostgreSQL chart persistence. This means
| `setupDBJob.annotations` | Add annotations to the Airflow "setup-db" job | `{}` |
| `setupDBJob.podLabels` | Additional pod labels for Airflow "setup-db" job | `{}` |
| `setupDBJob.podAnnotations` | Additional pod annotations for Airflow "setup-db" job | `{}` |
| `setupDBJob.extraVolumes` | Optionally specify extra list of additional volumes for Airflow "setup-db" job's pods | `[]` |
| `setupDBJob.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the Airflow "setup-db" job's containers | `[]` |
| `setupDBJob.initContainers` | Add additional init containers to the Airflow "setup-db" job's pods | `[]` |

### Airflow ldap parameters

Expand Down
9 changes: 9 additions & 0 deletions bitnami/airflow/templates/setup-db-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ spec:
{{- end }}
initContainers:
{{- include "airflow.defaultInitContainers.prepareConfig" . | nindent 8 }}
{{- if .Values.setupDBJob.initContainers }}
{{- include "common.tplvalues.render" (dict "value" .Values.setupDBJob.initContainers "context" $) | trim | nindent 8 }}
{{- end }}
containers:
- name: setup-db
image: {{ include "airflow.image" . }}
Expand Down Expand Up @@ -116,11 +119,17 @@ spec:
- name: empty-dir
mountPath: /opt/bitnami/airflow/config/airflow_local_settings.py
subPath: app-conf-dir/airflow_local_settings.py
{{- if .Values.setupDBJob.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.setupDBJob.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
volumes:
- name: empty-dir
emptyDir: {}
- name: configuration
configMap:
name: {{ include "airflow.configMapName" . }}
optional: true
{{- if .Values.setupDBJob.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.setupDBJob.extraVolumes "context" $) | nindent 8 }}
{{- end }}
{{- end }}
17 changes: 17 additions & 0 deletions bitnami/airflow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2458,6 +2458,23 @@ setupDBJob:
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
podAnnotations: {}
## @param setupDBJob.extraVolumes Optionally specify extra list of additional volumes for Airflow "setup-db" job's pods
##
extraVolumes: []
## @param setupDBJob.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Airflow "setup-db" job's containers
##
extraVolumeMounts: []
## @param setupDBJob.initContainers Add additional init containers to the Airflow "setup-db" job's pods
## Example:
## initContainers:
## - name: your-image-name
## image: your-image
## imagePullPolicy: Always
## ports:
## - name: portname
## containerPort: 1234
##
initContainers: []

## @section Airflow ldap parameters

Expand Down

0 comments on commit 0397460

Please sign in to comment.