k3s/pkg/controller
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
..
bootstrap Fix typos 2018-02-13 16:17:37 +08:00
certificates Merge pull request #58264 from WanLinghao/log_fix 2018-02-06 20:27:36 -08:00
cloud Add context to all relevant cloud APIs 2018-02-06 12:49:17 -08:00
clusterroleaggregation Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
cronjob fix all the typos across the project 2018-02-11 11:04:14 +08:00
daemon fix all the typos across the project 2018-02-11 11:04:14 +08:00
deployment fix deployment's collision avoidance mechanism 2018-02-07 11:28:43 -08:00
disruption fix all the typos across the project 2018-02-11 11:04:14 +08:00
endpoint fix all the typos across the project 2018-02-11 11:04:14 +08:00
garbagecollector fix all the typos across the project 2018-02-11 11:04:14 +08:00
history Promote SS to apps/v1 2018-01-18 13:48:52 +05:30
job Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
namespace Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
nodeipam fix all the typos across the project 2018-02-11 11:04:14 +08:00
nodelifecycle fix all the typos across the project 2018-02-11 11:04:14 +08:00
podautoscaler correct typo in HorizontalPodAutoscaler status condition 2018-01-29 13:01:43 -05:00
podgc Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
replicaset remove duplicated import 2018-01-17 09:34:59 +08:00
replication Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
resourcequota Merge pull request #57149 from deads2k/rebase-02-quota 2018-01-22 19:02:29 -08:00
route Add context to all relevant cloud APIs 2018-02-06 12:49:17 -08:00
service fix all the typos across the project 2018-02-11 11:04:14 +08:00
serviceaccount svcacct: move claim generation out of TokenGenerator 2018-02-06 13:19:54 -08:00
statefulset Merge pull request #55792 from dhilipkumars/statefulset-appsv1 2018-01-26 06:54:33 -08:00
testutil
ttl Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
util/node Add context to all relevant cloud APIs 2018-02-06 12:49:17 -08:00
volume add number measurement for bound/unbound pv/pvc 2018-02-14 17:31:14 +08:00
.import-restrictions
BUILD Add PV protection controller 2018-01-31 20:18:54 +08:00
OWNERS
client_builder.go
controller_ref_manager.go fix all the typos across the project 2018-02-11 11:04:14 +08:00
controller_ref_manager_test.go
controller_utils.go fix all the typos across the project 2018-02-11 11:04:14 +08:00
controller_utils_test.go
doc.go
lookup_cache.go