blob: 92db8937ddef4cef6853383dd5634086cc12dcf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- a/hack/lib/test.sh
+++ b/hack/lib/test.sh
@@ -73,10 +73,10 @@
local object=$2
local request=$3
local expected=$4
- local args=${5:-}
+ local get_args=${5:-}
for j in $(seq 1 ${tries}); do
- res=$(eval kubectl get "${kube_flags[@]}" ${args} ${object} -o go-template=\"${request}\")
+ res=$(eval kubectl ${args} get "${kube_flags[@]}" ${get_args} ${object} -o go-template=\"${request\}")
if [[ "${res}" =~ ^$expected$ ]]; then
echo -n "${green}"
echo "$(kube::test::get_caller 3): Successful get ${object} ${request}: ${res}"
|