Unverified Commit 9df102b4 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #59956 from mlmhl/fix_pv_controller_metric_e2e

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Wait for bound pvc metric updated before validating **What this PR does / why we need it**: We should wait for both bound pv and pvc metrics updated before validating the metric values(Currently we only wait for bound pv metric updated). **Release note**: ```release-note NONE ``` /sig storage
parents 244549f0 dcbd1ae3
...@@ -293,6 +293,7 @@ var _ = utils.SIGDescribe("[Serial] Volume metrics", func() { ...@@ -293,6 +293,7 @@ var _ = utils.SIGDescribe("[Serial] Volume metrics", func() {
pv, pvc, err = framework.CreatePVPVC(c, pvConfig, pvcConfig, ns, true) pv, pvc, err = framework.CreatePVPVC(c, pvConfig, pvcConfig, ns, true)
Expect(err).NotTo(HaveOccurred(), "Error creating pv pvc: %v", err) Expect(err).NotTo(HaveOccurred(), "Error creating pv pvc: %v", err)
waitForPVControllerSync(metricsGrabber, boundPVKey, classKey) waitForPVControllerSync(metricsGrabber, boundPVKey, classKey)
waitForPVControllerSync(metricsGrabber, boundPVCKey, namespaceKey)
validator([]map[string]int64{{className: 1}, nil, {ns: 1}, nil}) validator([]map[string]int64{{className: 1}, nil, {ns: 1}, nil})
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment