Skip to content

Commit f145f98

Browse files
committed
add new variables and change template to accept variables
1 parent 08853d0 commit f145f98

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

charts/retool/templates/deployment_workflows.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,11 @@ spec:
244244
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
245245
{{- end }}
246246
resources:
247+
{{- if .Values.workflows.backend.resources }}
248+
{{ toYaml .Values.workflows.backend.resources | indent 10 }}
249+
{{- else }}
247250
{{ toYaml .Values.resources | indent 10 }}
251+
{{- end }}
248252
volumeMounts:
249253
{{- range $configFile := (keys .Values.files) }}
250254
- name: {{ template "retool.name" $ }}

charts/retool/values.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,15 @@ workflows:
338338
# Scaling this number will increase the number of workflow backends, e.g. a replicaCount of 4
339339
# will launch 9 pods -- 4 workflow backend, 1 workflow workers, and 4 for temporal cluster
340340
replicaCount: 1
341-
# Set to scale the workflows-backend pod separately from main-backend pod
342-
resources:
343-
limits:
344-
cpu: 4096m
345-
memory: 8192Mi
346-
requests:
347-
cpu: 2048m
348-
memory: 4096Mi
341+
342+
# These resource specifications apply only to the workflow-backend pod. Set the resources to scale workflow-backend pod separately from main-backend pods.
343+
# resources:
344+
# limits:
345+
# cpu: 4096m
346+
# memory: 8192Mi
347+
# requests:
348+
# cpu: 2048m
349+
# memory: 4096Mi
349350

350351
# Timeout for queries, in ms. This will set the timeout for workflows-related pods only
351352
# If this value is not set but config.dbConnectorTimeout is, we will set workflows pod timeouts

values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,15 @@ workflows:
339339
# will launch 9 pods -- 4 workflow backend, 1 workflow workers, and 4 for temporal cluster
340340
replicaCount: 1
341341

342+
# These resource specifications apply only to the workflow-backend pod. Set the resources to scale workflow-backend pod separately from main-backend pods.
343+
# resources:
344+
# limits:
345+
# cpu: 4096m
346+
# memory: 8192Mi
347+
# requests:
348+
# cpu: 2048m
349+
# memory: 4096Mi
350+
342351
# Timeout for queries, in ms. This will set the timeout for workflows-related pods only
343352
# If this value is not set but config.dbConnectorTimeout is, we will set workflows pod timeouts
344353
# to .Values.config.dbConnectorTimeout

0 commit comments

Comments
 (0)