• Kubernetes Submit Queue's avatar
    Merge pull request #59646 from mlmhl/fix_volume_metrics_e2e · a8060ab0
    Kubernetes Submit Queue authored
    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
    a8060ab0
Name
Last commit
Last update
..
ginkgowrapper Loading commit data...
metrics Loading commit data...
timer Loading commit data...
BUILD Loading commit data...
authorizer_util.go Loading commit data...
cleanup.go Loading commit data...
crd_util.go Loading commit data...
deployment_util.go Loading commit data...
exec_util.go Loading commit data...
firewall_util.go Loading commit data...
firewall_util_test.go Loading commit data...
framework.go Loading commit data...
get-kubemark-resource-usage.go Loading commit data...
google_compute.go Loading commit data...
gpu_util.go Loading commit data...
ingress_utils.go Loading commit data...
jobs_util.go Loading commit data...
kubelet_stats.go Loading commit data...
log_size_monitoring.go Loading commit data...
metrics_util.go Loading commit data...
networking_utils.go Loading commit data...
nodes_util.go Loading commit data...
perf_util.go Loading commit data...
pods.go Loading commit data...
profile_gatherer.go Loading commit data...
psp_util.go Loading commit data...
pv_util.go Loading commit data...
rc_util.go Loading commit data...
resource_usage_gatherer.go Loading commit data...
rs_util.go Loading commit data...
service_util.go Loading commit data...
size.go Loading commit data...
statefulset_utils.go Loading commit data...
test_context.go Loading commit data...
upgrade_util.go Loading commit data...
util.go Loading commit data...
volume_util.go Loading commit data...