kubernetes/pkg/kubelet/server/stats
Niels de Vos b997e0e4d6 Add SupportsMetrics() for Block-mode volumes
Volumes that are provisioned with `VolumeMode: Block` often have a
MetrucsProvider interface declared in their type. However, the
MetricsProvider should implement a GetMetrics() function. In the cases
where the storage drivers do not implement GetMetrics(), a panic can
occur.

Usual type-assertions are not sufficient in this case. All assertions
assume the interface is present. There is no straight forward way to
verify that a valid GetMetrics() function is provided.

By adding SupportsMetrics(), storage driver implementations require
careful reviewing for metrics support.
2021-05-20 17:10:23 +02:00
..
testing Add Kubelet.ListBlockVolumesForPod() 2021-04-22 08:36:20 +02:00
doc.go
fs_resource_analyzer.go feature: add CSIVolumeHealth feature and gate 2021-03-10 01:16:37 +09:00
handler.go Add Kubelet.ListBlockVolumesForPod() 2021-04-22 08:36:20 +02:00
resource_analyzer.go feature: add CSIVolumeHealth feature and gate 2021-03-10 01:16:37 +09:00
summary_sys_containers_windows.go Move Kubelet Summary API to staging repo 2020-09-22 18:23:28 +02:00
summary_sys_containers.go pkg/kubelet/server: migrate to structured logs 2021-02-09 15:34:52 +08:00
summary_test.go Move Kubelet Summary API to staging repo 2020-09-22 18:23:28 +02:00
summary_windows_test.go Move Kubelet Summary API to staging repo 2020-09-22 18:23:28 +02:00
summary.go pkg/kubelet/server: migrate to structured logs 2021-02-09 15:34:52 +08:00
volume_stat_calculator_test.go Add SupportsMetrics() for Block-mode volumes 2021-05-20 17:10:23 +02:00
volume_stat_calculator.go Add SupportsMetrics() for Block-mode volumes 2021-05-20 17:10:23 +02:00