feature: add CSIVolumeHealth feature and gate

1. add EventRecorder to ResourceAnalyzer
2. add CSIVolumeHealth feature and gate
This commit is contained in:
fengzixu
2021-03-10 01:16:37 +09:00
parent 8a8c267e58
commit edc1c62471
13 changed files with 304 additions and 18 deletions

View File

@@ -255,7 +255,7 @@ func newTestKubeletWithImageList(
}
volumeStatsAggPeriod := time.Second * 10
kubelet.resourceAnalyzer = serverstats.NewResourceAnalyzer(kubelet, volumeStatsAggPeriod)
kubelet.resourceAnalyzer = serverstats.NewResourceAnalyzer(kubelet, volumeStatsAggPeriod, kubelet.recorder)
fakeHostStatsProvider := stats.NewFakeHostStatsProvider()