Skip to content

Commit b0a394d

Browse files
committed
Implement sending mixed traffic (json,proto)
1 parent eba398a commit b0a394d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

clusterloader2/testing/list/config.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{$configMapGroup := DefaultParam .CL2_LIST_CONFIG_MAP_GROUP "list-configmap"}}
55

66
{{$listReplicas := DefaultParam .CL2_LIST_BENCHMARK_PODS 1}}
7-
{{$contentType := DefaultParam .CL2_LIST_BENCHMARK_CONTENT_TYPE "json"}}
7+
{{$contentTypes := StringSplit .CL2_LIST_BENCHMARK_CONTENT_TYPE}}
88

99
name: list-benchmark
1010
namespace:
@@ -56,19 +56,20 @@ steps:
5656
bytes: {{$configMapBytes}}
5757
group: {{$configMapGroup}}
5858

59+
{{- range $i, $ct := $contentTypes }}
5960
- module:
6061
path: modules/list-benchmark.yaml
6162
params:
62-
namePrefix: "list-configmaps-"
63+
namePrefix: "list-configmaps-{{$ct}}-"
6364
replicas: {{$listReplicas}}
6465
uri: /api/v1/configmaps?resourceVersion=0
6566
namespaced: false
66-
contentType: {{$contentType}}
67+
contentType: {{$ct}}
6768
- module:
6869
path: /modules/measurements.yaml
6970
params:
7071
action: start
71-
- name: Wait 5 minutes
72+
- name: Wait 5 minutes for {{$ct}}
7273
measurements:
7374
- Identifier: Wait
7475
Method: Sleep
@@ -81,5 +82,6 @@ steps:
8182
- module:
8283
path: modules/list-benchmark.yaml
8384
params:
84-
namePrefix: "list-configmaps-"
85+
namePrefix: "list-configmaps-{{$ct}}-"
8586
replicas: 0
87+
{{- end }}

0 commit comments

Comments
 (0)