Skip to content

Commit f44bafd

Browse files
Fix e2e test failure
1 parent 312b298 commit f44bafd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/e2e.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function test_daemonset() {
126126

127127
kubectl get deployment -n kube-system
128128
kubectl create -f ./examples/daemonsetsharding
129-
kube_state_metrics_up kube-state-metrics-no-node-pods
129+
kube_state_metrics_up kube-state-metrics-unscheduled-pods-fetching
130130
kube_state_metrics_up kube-state-metrics
131131
kube_state_metrics_up kube-state-metrics-shard
132132
kubectl apply -f ./tests/e2e/testdata/pods.yaml
@@ -147,11 +147,11 @@ function test_daemonset() {
147147
exit 1
148148
fi
149149

150-
kubectl logs deployment/kube-state-metrics-no-node-pods -n kube-system
150+
kubectl logs deployment/kube-state-metrics-unscheduled-pods-fetching -n kube-system
151151
sleep 2
152152
kubectl get pods -A --field-selector spec.nodeName=""
153153
sleep 2
154-
pendingpod2="$(curl -s "http://localhost:8001/api/v1/namespaces/kube-system/services/kube-state-metrics-no-node-pods:http-metrics/proxy/metrics" | grep "pendingpod2" | grep -c "kube_pod_info" )"
154+
pendingpod2="$(curl -s "http://localhost:8001/api/v1/namespaces/kube-system/services/kube-state-metrics-unscheduled-pods-fetching:http-metrics/proxy/metrics" | grep "pendingpod2" | grep -c "kube_pod_info" )"
155155
if [ "${pendingpod2}" != "${expected_num_pod}" ]; then
156156
echo "metric kube_pod_info for pendingpod2 doesn't show up only once, got ${runningpod1} times"
157157
exit 1

0 commit comments

Comments
 (0)