Skip to content

Commit

Permalink
add svm name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose-Matsuda committed Oct 25, 2024
1 parent 403b04a commit e613eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func createPatch(pod *corev1.Pod, sidecarConfigTemplate *Config, annotations map
patch = append(patch, updateAnnotation(pod.Annotations, annotations)...)
patch = append(patch, updateWorkingVolumeMounts(pod.Spec.Containers, csiEphemeralVolumeountName, bucketMount, svmName, isFirstVol)...)
// Add the environment variables
patch = append(patch, updateUserEnvVars(pod.Spec.Containers, cleanAndSanitizeName(bucketMount), hashedBucketName)...)
patch = append(patch, updateUserEnvVars(pod.Spec.Containers, svmName+"-"+cleanAndSanitizeName(bucketMount), hashedBucketName)...)
isFirstVol = false // Update such that no longer the first value

} // end shareList loop
Expand Down

0 comments on commit e613eb4

Please sign in to comment.