Merge pull request #131547 from carlory/fix-incorrect-comments

fix incorrect comments
This commit is contained in:
Kubernetes Prow Robot
2025-06-09 10:52:24 -07:00
committed by GitHub
2 changed files with 2 additions and 4 deletions

View File

@@ -296,8 +296,8 @@ func (dsw *desiredStateOfWorld) AddPodToVolume(
err)
}
} else {
// For non-attachable and non-device-mountable volumes, generate a unique name based on the pod
// namespace and name and the name of the volume within the pod.
// For non-attachable and non-device-mountable volumes, generate a unique name based on the unique pod
// name (refer to podUID) and the name of the volume within the pod.
volumeName = util.GetUniqueVolumeNameFromSpecWithPod(podName, volumePlugin, volumeSpec)
}

View File

@@ -174,8 +174,6 @@ type VolumePlugin interface {
ConstructVolumeSpec(volumeName, volumePath string) (ReconstructedVolume, error)
// SupportsMountOption returns true if volume plugins supports Mount options
// Specifying mount options in a volume plugin that doesn't support
// user specified mount options will result in error creating persistent volumes
SupportsMountOption() bool
// SupportsSELinuxContextMount returns true if volume plugins supports