Enforce ReadWriteOncePod access mode during mount

This commit is contained in:
Chris Henzie
2021-03-10 20:53:48 -08:00
parent 7491d01651
commit 2b98f8edc7
4 changed files with 72 additions and 1 deletions

View File

@@ -203,6 +203,9 @@ type ActualStateOfWorldMounterUpdater interface {
// GetVolumeMountState returns mount state of the volume for the Pod
GetVolumeMountState(volumName v1.UniqueVolumeName, podName volumetypes.UniquePodName) VolumeMountState
// IsVolumeMountedElsewhere returns whether the supplied volume is mounted in a Pod other than the supplied one
IsVolumeMountedElsewhere(volumeName v1.UniqueVolumeName, podName volumetypes.UniquePodName) bool
// MarkForInUseExpansionError marks the volume to have in-use error during expansion.
// volume expansion must not be retried for this volume
MarkForInUseExpansionError(volumeName v1.UniqueVolumeName)