Commit ee632be5 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #49598 from sbezverk/local_vol_metrics

Automatic merge from submit-queue (batch tested with PRs 49619, 49598, 47267, 49597, 49638) Adding metrics support to local volume Adding metrics support to local volume plugin. Fixes #49601
parents 07d7ac78 fb67f118
......@@ -102,11 +102,12 @@ func (plugin *localVolumePlugin) NewMounter(spec *volume.Spec, pod *v1.Pod, _ vo
return &localVolumeMounter{
localVolume: &localVolume{
podUID: pod.UID,
volName: spec.Name(),
mounter: plugin.host.GetMounter(),
plugin: plugin,
globalPath: volumeSource.Path,
podUID: pod.UID,
volName: spec.Name(),
mounter: plugin.host.GetMounter(),
plugin: plugin,
globalPath: volumeSource.Path,
MetricsProvider: volume.NewMetricsStatFS(volumeSource.Path),
},
readOnly: readOnly,
}, nil
......@@ -151,8 +152,7 @@ type localVolume struct {
// Mounter interface that provides system calls to mount the global path to the pod local path.
mounter mount.Interface
plugin *localVolumePlugin
// TODO: add metrics
volume.MetricsNil
volume.MetricsProvider
}
func (l *localVolume) GetPath() string {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment