Skip to content

Commit

Permalink
revert volumeMounts
Browse files Browse the repository at this point in the history
  • Loading branch information
vietanhtwdk committed Jul 10, 2024
1 parent 7104640 commit d70c7a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/modules/generators/workload/workload_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)

Expand Down

0 comments on commit d70c7a0

Please sign in to comment.