Skip to content

Commit 0a4ab93

Browse files
committed
fix incorrect comments
1 parent 5be7941 commit 0a4ab93

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pkg/kubelet/volumemanager/cache/desired_state_of_world.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ func (dsw *desiredStateOfWorld) AddPodToVolume(
296296
err)
297297
}
298298
} else {
299-
// For non-attachable and non-device-mountable volumes, generate a unique name based on the pod
300-
// namespace and name and the name of the volume within the pod.
299+
// For non-attachable and non-device-mountable volumes, generate a unique name based on the unique pod
300+
// name (refer to podUID) and the name of the volume within the pod.
301301
volumeName = util.GetUniqueVolumeNameFromSpecWithPod(podName, volumePlugin, volumeSpec)
302302
}
303303

pkg/volume/plugins.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ type VolumePlugin interface {
174174
ConstructVolumeSpec(volumeName, volumePath string) (ReconstructedVolume, error)
175175

176176
// SupportsMountOption returns true if volume plugins supports Mount options
177-
// Specifying mount options in a volume plugin that doesn't support
178-
// user specified mount options will result in error creating persistent volumes
179177
SupportsMountOption() bool
180178

181179
// SupportsSELinuxContextMount returns true if volume plugins supports

0 commit comments

Comments
 (0)