Skip to content

Commit

Permalink
Fix tolerations iteration issue for pg-db cluster template
Browse files Browse the repository at this point in the history
Instead of replacing with single value, read array of tolerations for pg-db cluster template.
  • Loading branch information
kv-dhyey-moliya authored Sep 4, 2024
1 parent e659eb8 commit 43c63eb
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions charts/pg-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,12 @@ spec:

{{- if $instance.tolerations }}
tolerations:
- effect: {{ $instance.tolerations.effect }}
key: {{ $instance.tolerations.key }}
operator: {{ $instance.tolerations.operator }}
value: {{ $instance.tolerations.value }}
{{- range $toleration := $instance.tolerations }}
- effect: {{ $toleration.effect }}
key: {{ $toleration.key }}
operator: {{ $toleration.operator }}
value: {{ $toleration.value }}
{{- end }}
{{- end }}

{{- if $instance.priorityClassName }}
Expand Down Expand Up @@ -353,10 +355,12 @@ spec:
{{- end }}
{{- if .Values.proxy.pgBouncer.tolerations }}
tolerations:
- effect: {{ .Values.proxy.pgBouncer.tolerations.effect }}
key: {{ .Values.proxy.pgBouncer.tolerations.key }}
operator: {{ .Values.proxy.pgBouncer.tolerations.operator }}
value: {{ .Values.proxy.pgBouncer.tolerations.value }}
{{- range $toleration := .Values.proxy.pgBouncer.tolerations }}
- effect: {{ $toleration.effect }}
key: {{ $toleration.key }}
operator: {{ $toleration.operator }}
value: {{ $toleration.value }}
{{- end }}
{{- end }}
{{- if .Values.proxy.pgBouncer.securityContext }}
securityContext:
Expand Down

0 comments on commit 43c63eb

Please sign in to comment.