add volumeHealth label to metrics

This commit is contained in:
fengzixu
2021-11-26 10:50:24 +09:00
parent bab1755274
commit ed7fd0ced5
6 changed files with 41 additions and 24 deletions

View File

@@ -230,9 +230,11 @@ var _ = SIGDescribe("Summary API [NodeConformance]", func() {
"test-empty-dir": gstruct.MatchAllFields(gstruct.Fields{
"Name": gomega.Equal("test-empty-dir"),
"PVCRef": gomega.BeNil(),
"VolumeHealthStats": gstruct.MatchAllFields(gstruct.Fields{
"Abnormal": gomega.BeTrue(),
}),
"VolumeHealthStats": gstruct.MatchAllFields(
gstruct.Fields{
"Abnormal": gomega.BeFalse(),
},
),
"FsStats": gstruct.MatchAllFields(gstruct.Fields{
"Time": recent(maxStatsAge),
"AvailableBytes": fsCapacityBounds,