Skip to content

Commit fea0feb

Browse files
authored
Add support for tolerations (#6)
1 parent 1f66c86 commit fea0feb

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

charts/connector/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,7 @@ spec:
6868
imagePullSecrets:
6969
- name: formal-ecr-secret
7070
{{- end }}
71+
{{- with .Values.tolerations }}
72+
tolerations:
73+
{{- toYaml . | nindent 8 }}
74+
{{- end }}

charts/connector/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ podAnnotations:
5959
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
6060
volumes: []
6161
volumeMounts: []
62+
tolerations: []
6263

6364
# RBAC resources give pod and lease permissions to the service account for
6465
# cluster formation (pod discovery + lease-based bootstrap coordination)

charts/ecr-cred/templates/_job.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,8 @@ template:
4646
name: {{ include "connector.fullname" . }}-ecr
4747
key: ecr-secret-access-key
4848
restartPolicy: OnFailure
49+
{{- with .Values.tolerations }}
50+
tolerations:
51+
{{- toYaml . | nindent 6 }}
52+
{{- end }}
4953
{{- end }}

charts/ecr-cred/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ schedule: "0 */6 * * *"
1414
registryUrl: 654654333078.dkr.ecr.eu-west-1.amazonaws.com
1515
successfulJobsHistoryLimit: 3
1616
failedJobsHistoryLimit: 1
17+
18+
tolerations: []

0 commit comments

Comments
 (0)