@@ -125,6 +125,39 @@ app.kubernetes.io/instance: {{ .Release.Name }}
125
125
telemetry.retool.com/service-name: code-executor
126
126
{ {- end } }
127
127
128
+ { {/*
129
+ Selector labels for agent worker. Note changes here will require manual
130
+ deployment recreation and incur downtime, so should be avoided.
131
+ */} }
132
+ { {- define " retool.agentWorker.selectorLabels" -} }
133
+ retoolService: { { include " retool.agentWorker.name" . } }
134
+ { {- end } }
135
+
136
+ { {/*
137
+ Extra (non-selector) labels for agent worker.
138
+ */} }
139
+ { {- define " retool.agentWorker.labels" -} }
140
+ app.kubernetes.io/name: { { include " retool.agentWorker.name" . } }
141
+ app.kubernetes.io/instance: { { .Release.Name } }
142
+ telemetry.retool.com/service-name: agent-worker
143
+ { {- end } }
144
+
145
+ { {/*
146
+ Selector labels for agent eval worker. Note changes here will require manual
147
+ deployment recreation and incur downtime, so should be avoided.
148
+ */} }
149
+ { {- define " retool.agentEvalWorker.selectorLabels" -} }
150
+ retoolService: { { include " retool.agentEvalWorker.name" . } }
151
+ { {- end } }
152
+
153
+ { {/*
154
+ Extra (non-selector) labels for agent eval worker.
155
+ */} }
156
+ { {- define " retool.agentEvalWorker.labels" -} }
157
+ app.kubernetes.io/name: { { include " retool.agentEvalWorker.name" . } }
158
+ app.kubernetes.io/instance: { { .Release.Name } }
159
+ telemetry.retool.com/service-name: agent-eval-worker
160
+ { {- end } }
128
161
129
162
{ {/*
130
163
Create the name of the service account to use
@@ -237,6 +270,9 @@ Usage: (include "retool.workflows.enabled" .)
237
270
{ {- else -} }
238
271
{ {- $output = " " -} }
239
272
{ {- end -} }
273
+ { {- if (eq (toString .Values.agents.enabled) " true" ) -} } { {/* workflows (backend) is required to use agents */} }
274
+ { {- $output = " 1" -} }
275
+ { {- end -} }
240
276
{ {- $output -} }
241
277
{ {- end -} }
242
278
@@ -269,13 +305,30 @@ Usage: (include "retool.codeExecutor.enabled" .)
269
305
{ {- $output -} }
270
306
{ {- end -} }
271
307
308
+ { {/*
309
+ Set agents enabled
310
+ Usage: (include " retool.agents.enabled" .)
311
+ */} }
312
+ { {- define " retool.agents.enabled" -} }
313
+ { {- $output := " " -} }
314
+ { {- if (eq (toString .Values.agents.enabled) " true" ) -} }
315
+ { {- $output = " 1" -} }
316
+ { {- end -} }
317
+ { {- $output -} }
318
+ { {- end -} }
319
+
320
+ { {/* Global Temporal configuration */} }
321
+ { {- define " retool.temporalConfig" -} }
322
+ { {- .Values.workflows.temporal | default .Values.temporal | toYaml -} }
323
+ { {- end -} }
272
324
273
325
{ {/*
274
326
Set Temporal frontend host
275
327
*/} }
276
328
{ {- define " retool.temporal.host" -} }
277
- { {- if (.Values.workflows.temporal).enabled -} }
278
- { {- .Values.workflows.temporal.host | quote -} }
329
+ { {- $temporalConfig := include " retool.temporalConfig" . | fromYaml -} }
330
+ { {- if $temporalConfig .enabled -} }
331
+ { {- $temporalConfig .host | quote -} }
279
332
{ {- else -} }
280
333
{ {- printf " %s-%s" (include " temporal.fullname" (index .Subcharts " retool-temporal-services-helm" )) " frontend" -} }
281
334
{ {- end -} }
@@ -285,8 +338,9 @@ Set Temporal frontend host
285
338
Set Temporal frontend port
286
339
*/} }
287
340
{ {- define " retool.temporal.port" -} }
288
- { {- if (.Values.workflows.temporal).enabled -} }
289
- { {- .Values.workflows.temporal.port | quote -} }
341
+ { {- $temporalConfig := include " retool.temporalConfig" . | fromYaml -} }
342
+ { {- if $temporalConfig .enabled -} }
343
+ { {- $temporalConfig .port | quote -} }
290
344
{ {- else -} }
291
345
{ {- " 7233" | quote -} }
292
346
{ {- end -} }
@@ -296,8 +350,9 @@ Set Temporal frontend port
296
350
Set Temporal namespace
297
351
*/} }
298
352
{ {- define " retool.temporal.namespace" -} }
299
- { {- if (.Values.workflows.temporal).enabled -} }
300
- { {- .Values.workflows.temporal.namespace | quote -} }
353
+ { {- $temporalConfig := include " retool.temporalConfig" . | fromYaml -} }
354
+ { {- if $temporalConfig .enabled -} }
355
+ { {- $temporalConfig .namespace | quote -} }
301
356
{ {- else -} }
302
357
{ {- " workflows" | quote -} }
303
358
{ {- end -} }
@@ -338,6 +393,19 @@ Set multiplayer service name
338
393
{ { template " retool.fullname" . } }-multiplayer-ws
339
394
{ {- end -} }
340
395
396
+ { {/*
397
+ Set agent worker service name
398
+ */} }
399
+ { {- define " retool.agentWorker.name" -} }
400
+ { { template " retool.fullname" . } }-agent-worker
401
+ { {- end -} }
402
+
403
+ { {/*
404
+ Set agent eval worker service name
405
+ */} }
406
+ { {- define " retool.agentEvalWorker.name" -} }
407
+ { { template " retool.fullname" . } }-agent-eval-worker
408
+ { {- end -} }
341
409
342
410
{ {/*
343
411
Set code executor image tag
0 commit comments