From d70c7a0c84db36e4016bdeb1b50092ac79cde80c Mon Sep 17 00:00:00 2001 From: vietanhtwdk Date: Wed, 10 Jul 2024 11:15:23 +0700 Subject: [PATCH] revert volumeMounts --- pkg/modules/generators/workload/workload_generator.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/modules/generators/workload/workload_generator.go b/pkg/modules/generators/workload/workload_generator.go index d406a267..41d007f5 100644 --- a/pkg/modules/generators/workload/workload_generator.go +++ b/pkg/modules/generators/workload/workload_generator.go @@ -128,12 +128,11 @@ func toOrderedContainers( } // Append the configMap, volume and volumeMount objects into the corresponding slices. - volumesContainer, volumeMountsContainer, configMapsContainer, err := handleFileCreation(c, uniqueAppName, containerName) + volumesContainer, volumeMounts, configMapsContainer, err := handleFileCreation(c, uniqueAppName, containerName) if err != nil { return err } volumes = append(volumes, volumesContainer...) - volumeMounts = append(volumeMounts, volumeMountsContainer...) configMaps = append(configMaps, configMapsContainer...) ctn.VolumeMounts = append(ctn.VolumeMounts, volumeMounts...)