diff --git a/charts/backingservices/charts/srs/templates/_helpers.tpl b/charts/backingservices/charts/srs/templates/_helpers.tpl index a9a8b06a0..654b9e7f0 100644 --- a/charts/backingservices/charts/srs/templates/_helpers.tpl +++ b/charts/backingservices/charts/srs/templates/_helpers.tpl @@ -233,3 +233,11 @@ affinity: {{- toYaml .affinity | nindent 2 }} {{- end }} {{ end }} + + +{{- define "tolerations" }} +{{- if .tolerations }} +tolerations: +{{- toYaml .tolerations | nindent 2 }} +{{- end }} +{{ end }} diff --git a/charts/backingservices/charts/srs/templates/srsservice_deployment.yaml b/charts/backingservices/charts/srs/templates/srsservice_deployment.yaml index ba5b1406a..f5a66168e 100644 --- a/charts/backingservices/charts/srs/templates/srsservice_deployment.yaml +++ b/charts/backingservices/charts/srs/templates/srsservice_deployment.yaml @@ -152,4 +152,5 @@ spec: key: password {{ end }} {{- include "podAffinity" .Values.srsRuntime | indent 6 }} - {{ end }} \ No newline at end of file +{{- include "tolerations" .Values.srsRuntime | indent 6 }} + {{ end }} diff --git a/charts/pega/charts/hazelcast/templates/_supplemental.tpl b/charts/pega/charts/hazelcast/templates/_supplemental.tpl index 01add432e..6b23e52de 100644 --- a/charts/pega/charts/hazelcast/templates/_supplemental.tpl +++ b/charts/pega/charts/hazelcast/templates/_supplemental.tpl @@ -12,6 +12,7 @@ pega-hz-secret-name deployDBSecret deployNonExtDBSecret podAffinity +tolerations secretResolver are copied from pega/templates/_helpers.tpl because helm lint requires charts to render standalone. See: https://github.com/helm/helm/issues/11260 for more details. */}} @@ -123,4 +124,11 @@ false affinity: {{- toYaml .affinity | nindent 2 }} {{- end }} -{{ end }} \ No newline at end of file +{{ end }} + +{{- define "tolerations" }} +{{- if .tolerations }} +tolerations: +{{- toYaml .tolerations | nindent 2 }} +{{- end }} +{{ end }} diff --git a/charts/pega/charts/hazelcast/templates/clustering-service-deployment.yaml b/charts/pega/charts/hazelcast/templates/clustering-service-deployment.yaml index 5a593bdfc..7eb67b65d 100644 --- a/charts/pega/charts/hazelcast/templates/clustering-service-deployment.yaml +++ b/charts/pega/charts/hazelcast/templates/clustering-service-deployment.yaml @@ -74,4 +74,5 @@ spec: imagePullSecrets: {{- include "imagePullSecrets" . | indent 6 }} {{- include "podAffinity" .Values | indent 6 }} +{{- include "tolerations" .Values | indent 6 }} {{ end }}