Skip to content

Commit 5b65c24

Browse files
authored
fix pdb spec templating for specs >1 field (#253)
* fix pdb spec templating for specs >1 field * bump patch version
1 parent 401f330 commit 5b65c24

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
podDisruptionBudget:
2+
maxUnavailable: 1
3+
unhealthyPodEvictionPolicy: AlwaysAllow

charts/retool/templates/_workers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ kind: PodDisruptionBudget
386386
metadata:
387387
name: {{ include (printf "retool.%sWorker.name" $workerType) $ }}
388388
spec:
389-
{{ toYaml $.Values.podDisruptionBudget }}
389+
{{- toYaml $.Values.podDisruptionBudget | nindent 2 }}
390390
selector:
391391
matchLabels:
392392
{{- include (printf "retool.%sWorker.selectorLabels" $workerType) $ | nindent 6 }}

charts/retool/templates/deployment_backend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ kind: PodDisruptionBudget
387387
metadata:
388388
name: {{ template "retool.fullname" . }}
389389
spec:
390-
{{ toYaml .Values.podDisruptionBudget }}
390+
{{- toYaml .Values.podDisruptionBudget | nindent 2 }}
391391
selector:
392392
matchLabels:
393393
{{- include "retool.selectorLabels" . | nindent 6 }}

charts/retool/templates/deployment_code_executor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ kind: PodDisruptionBudget
155155
metadata:
156156
name: {{ template "retool.codeExecutor.name" . }}
157157
spec:
158-
{{ toYaml .Values.podDisruptionBudget }}
158+
{{- toYaml .Values.podDisruptionBudget | nindent 2 }}
159159
selector:
160160
matchLabels:
161161
{{- include "retool.codeExecutor.selectorLabels" . | nindent 6 }}

charts/retool/templates/deployment_dbconnector.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ kind: PodDisruptionBudget
258258
metadata:
259259
name: {{ include "retool.dbconnector.name" . }}
260260
spec:
261-
{{ toYaml .Values.podDisruptionBudget }}
261+
{{- toYaml .Values.podDisruptionBudget | nindent 2 }}
262262
selector:
263263
matchLabels:
264264
{{- include "retool.dbconnector.selectorLabels" . | nindent 6 }}

charts/retool/templates/deployment_workflows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ kind: PodDisruptionBudget
343343
metadata:
344344
name: {{ include "retool.workflowBackend.name" . }}
345345
spec:
346-
{{ toYaml .Values.podDisruptionBudget }}
346+
{{- toYaml .Values.podDisruptionBudget | nindent 2 }}
347347
selector:
348348
matchLabels:
349349
{{- include "retool.workflowBackend.selectorLabels" . | nindent 6 }}

0 commit comments

Comments
 (0)