- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for makeVolumeHandle (0.11 sec)
-
pkg/volume/csi/csi_mounter.go
return errors.New(log("failed to delete volume path [%s]: %v", volPath, err)) } } return nil } // makeVolumeHandle returns csi-<sha256(podUID,volSourceSpecName)> func makeVolumeHandle(podUID, volSourceSpecName string) string { result := sha256.Sum256([]byte(fmt.Sprintf("%s%s", podUID, volSourceSpecName))) return fmt.Sprintf("csi-%x", result) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jan 30 10:47:59 UTC 2024 - 21K bytes - Viewed (1) -
pkg/volume/csi/csi_plugin.go
if err != nil { return nil, err } var ( driverName string volumeHandle string readOnly bool ) switch { case volSrc != nil: volumeHandle = makeVolumeHandle(string(pod.UID), spec.Name()) driverName = volSrc.Driver if volSrc.ReadOnly != nil { readOnly = *volSrc.ReadOnly } case pvSrc != nil: driverName = pvSrc.Driver
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 29.2K bytes - Viewed (0)