mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 03:33:26 +00:00
Add GetAccessModes to volume plugin interface
This commit is contained in:
@@ -71,7 +71,7 @@ func (f *fakeVolumeHost) NewWrapperCleaner(spec *api.Volume, podUID types.UID) (
|
||||
return plug.NewCleaner(spec.Name, podUID)
|
||||
}
|
||||
|
||||
// FakeVolumePlugin is useful for for testing. It tries to be a fully compliant
|
||||
// FakeVolumePlugin is useful for testing. It tries to be a fully compliant
|
||||
// plugin, but all it does is make empty directories.
|
||||
// Use as:
|
||||
// volume.RegisterPlugin(&FakePlugin{"fake-name"})
|
||||
@@ -103,6 +103,10 @@ func (plugin *FakeVolumePlugin) NewCleaner(volName string, podUID types.UID) (Cl
|
||||
return &FakeVolume{podUID, volName, plugin}, nil
|
||||
}
|
||||
|
||||
func (plugin *FakeVolumePlugin) GetAccessModes() []api.AccessModeType {
|
||||
return []api.AccessModeType{}
|
||||
}
|
||||
|
||||
type FakeVolume struct {
|
||||
PodUID types.UID
|
||||
VolName string
|
||||
|
Reference in New Issue
Block a user