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...)