mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 14:11:14 +00:00
Fix e2e tests
This commit is contained in:
@@ -47,8 +47,8 @@ function do_teardown() {
|
|||||||
# $3: service replica count
|
# $3: service replica count
|
||||||
function start_service() {
|
function start_service() {
|
||||||
echo "Starting service '$1' on port $2 with $3 replicas"
|
echo "Starting service '$1' on port $2 with $3 replicas"
|
||||||
${KUBECFG} -s "$2" -p 9376 run kubernetes/serve_hostname "$3" "$1"
|
|
||||||
svcs_to_clean+=("$1")
|
svcs_to_clean+=("$1")
|
||||||
|
${KUBECFG} -s "$2" -p 9376 run kubernetes/serve_hostname "$3" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Args:
|
# Args:
|
||||||
@@ -70,7 +70,7 @@ function query_pods() {
|
|||||||
for i in $(seq 1 10); do
|
for i in $(seq 1 10); do
|
||||||
pods_unsorted=($(${KUBECFG} \
|
pods_unsorted=($(${KUBECFG} \
|
||||||
'-template={{range.Items}}{{.Name}} {{end}}' \
|
'-template={{range.Items}}{{.Name}} {{end}}' \
|
||||||
-l replicationController="$1" list pods))
|
-l name="$1" list pods))
|
||||||
found="${#pods_unsorted[*]}"
|
found="${#pods_unsorted[*]}"
|
||||||
if [[ "${found}" == "$2" ]]; then
|
if [[ "${found}" == "$2" ]]; then
|
||||||
break
|
break
|
||||||
|
Reference in New Issue
Block a user