Commit 3768d8a9 authored by Shyam Jeedigunta's avatar Shyam Jeedigunta

Half the no. of endpoints in load test

parent 6d3f5b75
......@@ -535,8 +535,11 @@ func GenerateConfigsForGroup(
MemRequest: 26214400, // 25MB
SecretNames: secretNames,
ConfigMapNames: configMapNames,
// Define a label to group every 2 RCs into one service.
Labels: map[string]string{svcLabelKey: groupName + "-" + strconv.Itoa((i+1)/2)},
}
// Add a label to alternate RCs, to include only half of them in services.
if i%2 == 0 {
baseConfig.Labels = map[string]string{svcLabelKey: groupName + "-" + strconv.Itoa(i/2)}
}
if kind == randomKind {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment