From e613eb4faf084fcf9cbfd58aae9282fac61835b4 Mon Sep 17 00:00:00 2001 From: Jose Matsuda Date: Fri, 25 Oct 2024 10:00:42 -0400 Subject: [PATCH] add svm name --- cmd/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/webhook.go b/cmd/webhook.go index 84a2986..97d13d1 100644 --- a/cmd/webhook.go +++ b/cmd/webhook.go @@ -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