File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ function test_daemonset() {
126
126
127
127
kubectl get deployment -n kube-system
128
128
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
130
130
kube_state_metrics_up kube-state-metrics
131
131
kube_state_metrics_up kube-state-metrics-shard
132
132
kubectl apply -f ./tests/e2e/testdata/pods.yaml
@@ -147,11 +147,11 @@ function test_daemonset() {
147
147
exit 1
148
148
fi
149
149
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
151
151
sleep 2
152
152
kubectl get pods -A --field-selector spec.nodeName=" "
153
153
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" ) "
155
155
if [ " ${pendingpod2} " != " ${expected_num_pod} " ]; then
156
156
echo " metric kube_pod_info for pendingpod2 doesn't show up only once, got ${runningpod1} times"
157
157
exit 1
You can’t perform that action at this time.
0 commit comments