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
@@ -99,25 +87,7 @@ function kube_state_metrics_up() {
99
87
exit 1
100
88
fi
101
89
}
102
-
functionkube_pod_up() {
103
-
is_pod_running="false"
104
90
105
-
for_in {1..90};do# timeout for 3 minutes
106
-
kubectl get pods -A | grep "$1"1>/dev/null 2>&1
107
-
if [[ $?-ne 1 ]];then
108
-
is_pod_running="true"
109
-
break
110
-
fi
111
-
112
-
echo"waiting for pod $1 to come up"
113
-
sleep 2
114
-
done
115
-
116
-
if [[ ${is_pod_running}=="false" ]];then
117
-
echo"Pod does not show up within 3 minutes"
118
-
exit 1
119
-
fi
120
-
}
121
91
122
92
functiontest_daemonset() {
123
93
sed -i "s|${KUBE_STATE_METRICS_CURRENT_IMAGE_NAME}:v.*|${KUBE_STATE_METRICS_IMAGE_NAME}:${KUBE_STATE_METRICS_IMAGE_TAG}|g" ./examples/daemonsetsharding/deployment.yaml
0 commit comments