You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/scale/test-scale.sh
+15-6Lines changed: 15 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ OPTIONAL PARAMETERS:
41
41
--debug-exit-after-print-counts skip scale test. Just print out counts of things to be created and counts of IPSets/ACLs that NPM would create
42
42
--num-real-services cluster ip service for the real deployments scheduled. Each svc will point to the respective deployment(having <num-real-replicas> pods) Default is 0
43
43
--debug-exit-after-generation skip scale test. Exit after generating templates
44
+
--real-pod-type select deployment type. Options are agnhost or nginx. Default is agnhost
44
45
45
46
OPTIONAL PARAMETERS TO TEST DELETION:
46
47
--sleep-after-creation=<int> seconds to sleep after creating everything. Default is 0
@@ -79,6 +80,9 @@ while [[ $# -gt 0 ]]; do
79
80
--num-real-deployments=*)
80
81
numRealDeployments="${1#*=}"
81
82
;;
83
+
--real-pod-type=*)
84
+
realPodType="${1#*=}"
85
+
;;
82
86
--num-real-replicas=*)
83
87
numRealReplicas="${1#*=}"
84
88
;;
@@ -180,6 +184,9 @@ fi
180
184
if [[ -z$KUBECTL ]];then
181
185
KUBECTL="kubectl"
182
186
fi
187
+
if [[ -z$realPodType ]];then
188
+
realPodType="agnhost"
189
+
fi
183
190
if [[ -z$numRealServices ]];then numRealServices=0;fi
184
191
if [[ -z$deletePodsInterval ]];then deletePodsInterval=60;fi
185
192
if [[ -z$deletePodsTimes ]];then deletePodsTimes=1;fi
@@ -213,7 +220,7 @@ if [[ $numRealPods -gt 0 ]]; then
0 commit comments