kubernetes/pkg/volume/local
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
..
doc.go
local_linux_test.go call T.Fatalf() for nil ptr 2020-04-11 11:15:40 -04:00
local_test.go cleanup: fix log capitalization in volume package 2021-04-14 21:58:56 +08:00
local.go Add SupportsMetrics() for Block-mode volumes 2021-05-20 17:10:23 +02:00
OWNERS add cofyc as local volume owner 2019-11-21 09:38:49 +08:00