Skip to content

Commit

Permalink
helm chart: Support nodeSelector, tolerations and affinity on the boo…
Browse files Browse the repository at this point in the history
…loader pod (#11467)
  • Loading branch information
jfouchard authored Jun 3, 2022
1 parent c3170f9 commit 0f61411
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/airbyte/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.3
version: 0.3.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 1 addition & 0 deletions charts/airbyte/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ Helm charts for Airbyte.
| `bootloader.podAnnotations` | Add extra annotations to the bootloader pod | `{}` |
| `bootloader.nodeSelector` | Node labels for pod assignment | `{}` |
| `bootloader.tolerations` | Tolerations for worker pod assignment. | `[]` |
| `bootloader.affinity` | Affinity and anti-affinity for bootloader pod assignment. | `{}` |


### Temporal parameters
Expand Down
3 changes: 3 additions & 0 deletions charts/airbyte/templates/bootloader/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ spec:
{{- if .Values.bootloader.tolerations }}
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.bootloader.tolerations "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.bootloader.affinity }}
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.bootloader.affinity "context" $) | nindent 8 }}
{{- end }}
containers:
- name: airbyte-bootloader-container
image: {{ include "airbyte.bootloaderImage" . }}
Expand Down
5 changes: 5 additions & 0 deletions charts/airbyte/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,11 @@ bootloader:
##
tolerations: []

## @param bootloader.affinity [object] Affinity and anti-affinity for bootloader pod assignment.
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}

## @section Temporal parameters
## TODO: Move to consuming temporal from a dedicated helm chart

Expand Down

0 comments on commit 0f61411

Please sign in to comment.