Skip to content

Commit 9b60a62

Browse files
JAORMXclaude
andcommitted
Regenerate CRDs and CRD docs for forEach step type
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1d606f2 commit 9b60a62

5 files changed

Lines changed: 119 additions & 1 deletion

deploy/charts/operator-crds/files/crds/toolhive.stacklok.dev_virtualmcpcompositetooldefinitions.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ spec:
174174
Note: the templating is only supported on the first level of the key-value pairs.
175175
type: object
176176
x-kubernetes-preserve-unknown-fields: true
177+
collection:
178+
description: |-
179+
Collection is a Go template expression that resolves to a JSON array or a slice.
180+
Only used when Type is "forEach".
181+
type: string
177182
condition:
178183
description: Condition is a template expression that determines
179184
if the step should execute
@@ -194,6 +199,24 @@ spec:
194199
id:
195200
description: ID is the unique identifier for this step.
196201
type: string
202+
itemVar:
203+
description: |-
204+
ItemVar is the variable name used to reference the current item in forEach templates.
205+
Defaults to "item" if not specified.
206+
Only used when Type is "forEach".
207+
type: string
208+
maxIterations:
209+
description: |-
210+
MaxIterations limits the number of items that can be iterated over.
211+
Defaults to 100, hard cap at 1000.
212+
Only used when Type is "forEach".
213+
type: integer
214+
maxParallel:
215+
description: |-
216+
MaxParallel limits the number of concurrent iterations in a forEach step.
217+
Defaults to the DAG executor's maxParallel (10).
218+
Only used when Type is "forEach".
219+
type: integer
197220
message:
198221
description: |-
199222
Message is the elicitation message
@@ -263,6 +286,10 @@ spec:
263286
elicitation
264287
type: object
265288
x-kubernetes-preserve-unknown-fields: true
289+
step:
290+
description: |-
291+
InnerStep defines the step to execute for each item in the collection.
292+
Only used when Type is "forEach". Only tool-type inner steps are supported.
266293
timeout:
267294
description: Timeout is the maximum execution time for this
268295
step
@@ -279,6 +306,7 @@ spec:
279306
enum:
280307
- tool
281308
- elicitation
309+
- forEach
282310
type: string
283311
required:
284312
- id

deploy/charts/operator-crds/files/crds/toolhive.stacklok.dev_virtualmcpservers.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,11 @@ spec:
975975
Note: the templating is only supported on the first level of the key-value pairs.
976976
type: object
977977
x-kubernetes-preserve-unknown-fields: true
978+
collection:
979+
description: |-
980+
Collection is a Go template expression that resolves to a JSON array or a slice.
981+
Only used when Type is "forEach".
982+
type: string
978983
condition:
979984
description: Condition is a template expression that
980985
determines if the step should execute
@@ -996,6 +1001,24 @@ spec:
9961001
description: ID is the unique identifier for this
9971002
step.
9981003
type: string
1004+
itemVar:
1005+
description: |-
1006+
ItemVar is the variable name used to reference the current item in forEach templates.
1007+
Defaults to "item" if not specified.
1008+
Only used when Type is "forEach".
1009+
type: string
1010+
maxIterations:
1011+
description: |-
1012+
MaxIterations limits the number of items that can be iterated over.
1013+
Defaults to 100, hard cap at 1000.
1014+
Only used when Type is "forEach".
1015+
type: integer
1016+
maxParallel:
1017+
description: |-
1018+
MaxParallel limits the number of concurrent iterations in a forEach step.
1019+
Defaults to the DAG executor's maxParallel (10).
1020+
Only used when Type is "forEach".
1021+
type: integer
9991022
message:
10001023
description: |-
10011024
Message is the elicitation message
@@ -1066,6 +1089,10 @@ spec:
10661089
schema for elicitation
10671090
type: object
10681091
x-kubernetes-preserve-unknown-fields: true
1092+
step:
1093+
description: |-
1094+
InnerStep defines the step to execute for each item in the collection.
1095+
Only used when Type is "forEach". Only tool-type inner steps are supported.
10691096
timeout:
10701097
description: Timeout is the maximum execution time
10711098
for this step
@@ -1083,6 +1110,7 @@ spec:
10831110
enum:
10841111
- tool
10851112
- elicitation
1113+
- forEach
10861114
type: string
10871115
required:
10881116
- id

deploy/charts/operator-crds/templates/toolhive.stacklok.dev_virtualmcpcompositetooldefinitions.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ spec:
177177
Note: the templating is only supported on the first level of the key-value pairs.
178178
type: object
179179
x-kubernetes-preserve-unknown-fields: true
180+
collection:
181+
description: |-
182+
Collection is a Go template expression that resolves to a JSON array or a slice.
183+
Only used when Type is "forEach".
184+
type: string
180185
condition:
181186
description: Condition is a template expression that determines
182187
if the step should execute
@@ -197,6 +202,24 @@ spec:
197202
id:
198203
description: ID is the unique identifier for this step.
199204
type: string
205+
itemVar:
206+
description: |-
207+
ItemVar is the variable name used to reference the current item in forEach templates.
208+
Defaults to "item" if not specified.
209+
Only used when Type is "forEach".
210+
type: string
211+
maxIterations:
212+
description: |-
213+
MaxIterations limits the number of items that can be iterated over.
214+
Defaults to 100, hard cap at 1000.
215+
Only used when Type is "forEach".
216+
type: integer
217+
maxParallel:
218+
description: |-
219+
MaxParallel limits the number of concurrent iterations in a forEach step.
220+
Defaults to the DAG executor's maxParallel (10).
221+
Only used when Type is "forEach".
222+
type: integer
200223
message:
201224
description: |-
202225
Message is the elicitation message
@@ -266,6 +289,10 @@ spec:
266289
elicitation
267290
type: object
268291
x-kubernetes-preserve-unknown-fields: true
292+
step:
293+
description: |-
294+
InnerStep defines the step to execute for each item in the collection.
295+
Only used when Type is "forEach". Only tool-type inner steps are supported.
269296
timeout:
270297
description: Timeout is the maximum execution time for this
271298
step
@@ -282,6 +309,7 @@ spec:
282309
enum:
283310
- tool
284311
- elicitation
312+
- forEach
285313
type: string
286314
required:
287315
- id

deploy/charts/operator-crds/templates/toolhive.stacklok.dev_virtualmcpservers.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,11 @@ spec:
978978
Note: the templating is only supported on the first level of the key-value pairs.
979979
type: object
980980
x-kubernetes-preserve-unknown-fields: true
981+
collection:
982+
description: |-
983+
Collection is a Go template expression that resolves to a JSON array or a slice.
984+
Only used when Type is "forEach".
985+
type: string
981986
condition:
982987
description: Condition is a template expression that
983988
determines if the step should execute
@@ -999,6 +1004,24 @@ spec:
9991004
description: ID is the unique identifier for this
10001005
step.
10011006
type: string
1007+
itemVar:
1008+
description: |-
1009+
ItemVar is the variable name used to reference the current item in forEach templates.
1010+
Defaults to "item" if not specified.
1011+
Only used when Type is "forEach".
1012+
type: string
1013+
maxIterations:
1014+
description: |-
1015+
MaxIterations limits the number of items that can be iterated over.
1016+
Defaults to 100, hard cap at 1000.
1017+
Only used when Type is "forEach".
1018+
type: integer
1019+
maxParallel:
1020+
description: |-
1021+
MaxParallel limits the number of concurrent iterations in a forEach step.
1022+
Defaults to the DAG executor's maxParallel (10).
1023+
Only used when Type is "forEach".
1024+
type: integer
10021025
message:
10031026
description: |-
10041027
Message is the elicitation message
@@ -1069,6 +1092,10 @@ spec:
10691092
schema for elicitation
10701093
type: object
10711094
x-kubernetes-preserve-unknown-fields: true
1095+
step:
1096+
description: |-
1097+
InnerStep defines the step to execute for each item in the collection.
1098+
Only used when Type is "forEach". Only tool-type inner steps are supported.
10721099
timeout:
10731100
description: Timeout is the maximum execution time
10741101
for this step
@@ -1086,6 +1113,7 @@ spec:
10861113
enum:
10871114
- tool
10881115
- elicitation
1116+
- forEach
10891117
type: string
10901118
required:
10911119
- id

docs/operator/crd-api.md

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)