Skip to content

Commit 874e875

Browse files
committed
Add quotes to perf-test args.
1 parent a768cf0 commit 874e875

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

bin/kubectl-rabbitmq

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ perf_test() {
153153
echo " ports:"
154154
echo " - containerPort: 8080"
155155
echo " args:"
156-
echo " - --uri"
157-
echo " - amqp://${username}:${password}@${service}"
158-
echo " - --metrics-prometheus"
156+
echo " - \"--uri\""
157+
echo " - \"amqp://${username}:${password}@${service}\""
158+
echo " - \"--metrics-prometheus\""
159159
for arg in "$@"; do
160-
echo " - $arg"
160+
echo " - \"$arg\""
161161
done
162162
} >"$perf_test_job_file"
163163

@@ -189,10 +189,10 @@ stream_perf_test() {
189189
echo " - name: rabbitmq-stream-perf-test"
190190
echo " image: pivotalrabbitmq/stream-perf-test"
191191
echo " args:"
192-
echo " - --uris"
193-
echo " - stream://${username}:${password}@${service}"
192+
echo " - \"--uris\""
193+
echo " - \"stream://${username}:${password}@${service}\""
194194
for arg in "$@"; do
195-
echo " - $arg"
195+
echo " - \"$arg\""
196196
done
197197
} >"$perf_test_job_file"
198198

0 commit comments

Comments
 (0)