Skip to content

Commit

Permalink
Helm Chart: support for node selectors and tolerations in bootloader …
Browse files Browse the repository at this point in the history
…pod (#11782)
  • Loading branch information
krzysdabro authored Apr 7, 2022
1 parent ded2b65 commit 85681cf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/airbyte/templates/bootloader/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ metadata:
spec:
serviceAccountName: {{ include "airbyte.serviceAccountName" . }}
restartPolicy: Never
{{- if .Values.bootloader.nodeSelector }}
nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.bootloader.nodeSelector "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.bootloader.tolerations }}
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.bootloader.tolerations "context" $) | nindent 8 }}
{{- end }}
containers:
- name: airbyte-bootloader-container
image: {{ include "airbyte.bootloaderImage" . }}
Expand Down
10 changes: 10 additions & 0 deletions charts/airbyte/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,16 @@ bootloader:
##
podAnnotations: {}

## @param bootloader.nodeSelector [object] Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector: {}

## @param bootloader.tolerations [array] Tolerations for worker pod assignment.
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##
tolerations: []

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

Expand Down

0 comments on commit 85681cf

Please sign in to comment.