Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions charts/backingservices/charts/srs/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,11 @@ affinity:
{{- toYaml .affinity | nindent 2 }}
{{- end }}
{{ end }}


{{- define "tolerations" }}
{{- if .tolerations }}
tolerations:
{{- toYaml .tolerations | nindent 2 }}
{{- end }}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,5 @@ spec:
key: password
{{ end }}
{{- include "podAffinity" .Values.srsRuntime | indent 6 }}
{{ end }}
{{- include "tolerations" .Values.srsRuntime | indent 6 }}
{{ end }}
10 changes: 9 additions & 1 deletion charts/pega/charts/hazelcast/templates/_supplemental.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/}}
Expand Down Expand Up @@ -123,4 +124,11 @@ false
affinity:
{{- toYaml .affinity | nindent 2 }}
{{- end }}
{{ end }}
{{ end }}

{{- define "tolerations" }}
{{- if .tolerations }}
tolerations:
{{- toYaml .tolerations | nindent 2 }}
{{- end }}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ spec:
imagePullSecrets:
{{- include "imagePullSecrets" . | indent 6 }}
{{- include "podAffinity" .Values | indent 6 }}
{{- include "tolerations" .Values | indent 6 }}
{{ end }}