Merge pull request #51448 from kastenhq/pvc_ref_volstats
Automatic merge from submit-queue (batch tested with PRs 51513, 51515, 50570, 51482, 51448) Add PVCRef to VolumeStats **What this PR does / why we need it**: For pod volumes that reference a PVC, add a PVCRef to the corresponding volume stat. This allows metrics to be indexed/queried by PVC name which is more user-friendly than Pod reference **Which issue this PR fixes** : [#363](https://github.com/kubernetes/features/issues/363) **Special notes for your reviewer**: **Release note**: ``` `VolumeStats` reported by the kubelet stats summary API (http://<node>:10255/stats/summary) now include a PVCRef field describing the PVC referenced by the volume (if any). ```
This commit is contained in:
@@ -181,7 +181,8 @@ var _ = framework.KubeDescribe("Summary API", func() {
|
||||
}),
|
||||
"VolumeStats": gstruct.MatchAllElements(summaryObjectID, gstruct.Elements{
|
||||
"test-empty-dir": gstruct.MatchAllFields(gstruct.Fields{
|
||||
"Name": Equal("test-empty-dir"),
|
||||
"Name": Equal("test-empty-dir"),
|
||||
"PVCRef": BeNil(),
|
||||
"FsStats": gstruct.MatchAllFields(gstruct.Fields{
|
||||
"Time": recent(maxStatsAge),
|
||||
"AvailableBytes": fsCapacityBounds,
|
||||
|
||||
Reference in New Issue
Block a user