k3s/test
Kubernetes Submit Queue a8060ab0a1
Merge pull request #59646 from mlmhl/fix_volume_metrics_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>.

Add bound/unbound pv/pvc volume metrics

**What this PR does / why we need it**:

Fix two bugs in bound/unbound pv/pvc volumes metric e2e test:

1. Check `HasRegisteredMaster` in `BeforeEach` instead of each tests because we will grab the metrics in `BeforeEach`

2. Fix `calculateRelativeValues` bug, if there are other PV/PVC exist in the cluster, `calculateRelativeValues` will return a map like `map[string]int64{"some-storage-class-name": 0}`, this will lead to test failure. We should skip these unchanged numbers.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #59517

**Release note**:

```release-note
NONE
```

/sig storage
2018-02-14 22:10:45 -08:00
..
conformance fix all the typos across the project 2018-02-11 11:04:14 +08:00
e2e Merge pull request #59646 from mlmhl/fix_volume_metrics_e2e 2018-02-14 22:10:45 -08:00
e2e_node Merge pull request #59511 from derekwaynecarr/hugepage-e2e 2018-02-13 11:12:54 -08:00
fixtures Switch to k8s.gcr.io vanity domain 2018-02-07 21:14:19 -08:00
images fix markdown formatting for test image 2018-02-13 14:36:15 -06:00
integration Merge pull request #59817 from shyamjvs/add-retries-to-node-create-util-function 2018-02-14 08:40:39 -08:00
kubemark Mark kubemark images w/ random tags to avoid race b/w runs 2018-02-08 17:54:01 +01:00
list Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
soak Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
utils Switch to k8s.gcr.io vanity domain 2018-02-07 21:14:19 -08:00
BUILD Add conformance test regression test. 2017-10-27 15:31:20 -07:00
OWNERS fabiano no longer a thing 2017-12-19 16:37:12 -02:00
test_owners.csv fix all the typos across the project 2018-02-11 11:04:14 +08:00
test_owners.json Remove all traces of federation 2017-10-26 13:37:37 -07:00