Skip to content

Commit

Permalink
Add config to kubernetesPodTemplate
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Thoretton <[email protected]>
  • Loading branch information
mthoretton committed Aug 25, 2021
1 parent f123414 commit e76ddec
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
8 changes: 7 additions & 1 deletion charts/airflow/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ This project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html)

TBD

## [8.6.0] - 2021-08-25
### Added
- `airflow.kubernetesPodTemplate.shareProcessNamespace`
- `airflow.kubernetesPodTemplate.extraContainers`

## [8.5.1] - 2021-08-23

### Fixed
Expand Down Expand Up @@ -620,6 +625,7 @@ TBD
> https://github.com/helm/charts/tree/master/stable/airflow
[Unreleased]: https://github.com/airflow-helm/charts/compare/airflow-8.5.1...HEAD
[8.6.0]: https://github.com/airflow-helm/charts/compare/airflow-8.5.1...airflow-8.6.0
[8.5.1]: https://github.com/airflow-helm/charts/compare/airflow-8.5.0...airflow-8.5.1
[8.5.0]: https://github.com/airflow-helm/charts/compare/airflow-8.4.1...airflow-8.5.0
[8.4.1]: https://github.com/airflow-helm/charts/compare/airflow-8.4.0...airflow-8.4.1
Expand Down Expand Up @@ -647,4 +653,4 @@ TBD
[7.14.3]: https://github.com/airflow-helm/charts/compare/airflow-7.14.2...airflow-7.14.3
[7.14.2]: https://github.com/airflow-helm/charts/compare/airflow-7.14.1...airflow-7.14.2
[7.14.1]: https://github.com/airflow-helm/charts/compare/airflow-7.14.0...airflow-7.14.1
[7.14.0]: https://github.com/airflow-helm/charts/compare/airflow-7.14.0...airflow-7.14.0
[7.14.0]: https://github.com/airflow-helm/charts/compare/airflow-7.14.0...airflow-7.14.0
8 changes: 8 additions & 0 deletions charts/airflow/files/pod_template.kubernetes-helm-yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
{{- include "airflow.container.git_sync" (dict "Release" .Release "Values" .Values "sync_one_time" "true") | indent 4 }}
{{- end }}
{{- end }}
shareProcessNamespace: {{ toYaml .Values.airflow.kubernetesPodTemplate.shareProcessNamespace }}
containers:
- name: base
{{- include "airflow.image" . | indent 6 }}
Expand All @@ -66,6 +67,10 @@ spec:
ports: []
command: []
args: []
{{- if .Values.airflow.kubernetesPodTemplate.securityContext }}
securityContext:
{{- toYaml .Values.airflow.kubernetesPodTemplate.securityContext | nindent 8 }}
{{- end }}
{{- if .Values.airflow.kubernetesPodTemplate.resources }}
resources:
{{- toYaml .Values.airflow.kubernetesPodTemplate.resources | nindent 8 }}
Expand All @@ -74,6 +79,9 @@ spec:
volumeMounts:
{{- $volumeMounts | indent 8 }}
{{- end }}
{{- if .Values.airflow.kubernetesPodTemplate.extraContainers }}
{{- toYaml .Values.airflow.kubernetesPodTemplate.extraContainers | nindent 4 }}
{{- end }}
{{- if $volumes }}
volumes:
{{- $volumes | indent 4 }}
Expand Down
7 changes: 7 additions & 0 deletions charts/airflow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,13 @@ airflow:
##
extraVolumes: []

## Enable shareProcessNamespace
## https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
shareProcessNamespace: false

## Add extra containers
extraContainers: {}

########################################
## COMPONENT | db-migrations Deployment
########################################
Expand Down

0 comments on commit e76ddec

Please sign in to comment.