Skip to content

Commit 96531f3

Browse files
committed
fix: use correct incorrect way of doing volume names
1 parent de913c3 commit 96531f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/controller/volumes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ func addOrUpdatePrecreator(podspec *corev1.PodSpec, bucketMounts map[string]stri
8989
Name: precreatorContainerName,
9090
}
9191
volumeMounts := make(map[string]corev1.VolumeMount, len(bucketMounts))
92-
for _, bucket := range bucketMounts {
93-
volumeName := maxLengthVolumeName(bucket)
92+
for mountPoint, bucket := range bucketMounts {
93+
volumeName := maxLengthVolumeName(mountPoint)
9494
volumeMounts[volumeName] = corev1.VolumeMount{
9595
Name: volumeName,
9696
MountPath: fmt.Sprintf("/buckets/%s", bucket),

0 commit comments

Comments
 (0)