Skip to content

Commit 62f1a6d

Browse files
committed
Add an option to inject additional objects to load config
1 parent 502df28 commit 62f1a6d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Diff for: clusterloader2/testing/load/config.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
{{$defaultQps := DefaultParam .CL2_DEFAULT_QPS (IfThenElse (le .Nodes 500) 10 100)}}
7979

8080
{{$ADDITIONAL_MEASUREMENT_MODULES := DefaultParam .CL2_ADDITIONAL_MEASURMENT_MODULES nil}}
81+
{{$ADDITIONAL_PHASES_MODULES := DefaultParam .CL2_ADDITIONAL_PHASES_MODULES nil}}
8182

8283
name: load
8384
namespace:
@@ -207,6 +208,15 @@ steps:
207208
smallJobSize: {{$SMALL_GROUP_SIZE}}
208209
smallJobsPerNamespace: 1
209210

211+
{{if $ADDITIONAL_PHASES_MODULES}}
212+
{{range $ADDITIONAL_PHASES_MODULES}}
213+
- module:
214+
path: {{.}}
215+
params:
216+
action: "create"
217+
{{end}}
218+
{{end}}
219+
210220
{{if not $IS_SMALL_CLUSTER}}
211221
# BEGIN scheduler throughput
212222
- module:
@@ -339,6 +349,15 @@ steps:
339349
smallJobSize: {{$SMALL_GROUP_SIZE}}
340350
smallJobsPerNamespace: 1
341351

352+
{{if $ADDITIONAL_PHASES_MODULES}}
353+
{{range $ADDITIONAL_PHASES_MODULES}}
354+
- module:
355+
path: {{.}}
356+
params:
357+
action: "scale and update"
358+
{{end}}
359+
{{end}}
360+
342361
- module:
343362
path: /modules/reconcile-objects.yaml
344363
params:
@@ -372,6 +391,15 @@ steps:
372391
pvSmallStatefulSetSize: {{$SMALL_STATEFUL_SETS_PER_NAMESPACE}}
373392
pvMediumStatefulSetSize: {{$MEDIUM_STATEFUL_SETS_PER_NAMESPACE}}
374393

394+
{{if $ADDITIONAL_PHASES_MODULES}}
395+
{{range $ADDITIONAL_PHASES_MODULES}}
396+
- module:
397+
path: {{.}}
398+
params:
399+
action: "delete"
400+
{{end}}
401+
{{end}}
402+
375403
- module:
376404
path: /modules/configmaps-secrets.yaml
377405
params:

0 commit comments

Comments
 (0)