Fix PVC handling for StatefulSets

This commit is contained in:
2025-12-17 11:17:30 +05:30
parent e6b323eedb
commit f2688ca2cf
2 changed files with 88 additions and 26 deletions
+7 -1
View File
@@ -606,7 +606,13 @@ func dockerComposeToKomposeMapping(composeObject *types.Project) (kobject.Kompos
komposeObject.ServiceConfigs[normalizeServiceNames(name)] = serviceConfig
}
handleVolume(&komposeObject, &composeObject.Volumes)
// Normalize volume names in the volumes map so lookups work with normalized names
normalizedVolumes := make(types.Volumes)
for volName, volConfig := range composeObject.Volumes {
normalizedVolumes[normalizeVolumes(volName)] = volConfig
}
handleVolume(&komposeObject, &normalizedVolumes)
return komposeObject, nil
}