chore(names): Fix resource name

Use an utility function to fix some names
This commit is contained in:
2024-11-21 11:12:38 +01:00
parent 3f63375b60
commit 3b51f41716
2 changed files with 7 additions and 1 deletions

View File

@@ -273,7 +273,7 @@ func buildVolumes(service types.ServiceConfig, chart *HelmChart, deployments map
}
switch v.Type {
case "volume":
v.Source = strings.ReplaceAll(v.Source, "-", "_")
v.Source = utils.AsResourceName(v.Source)
pvc := NewVolumeClaim(service, v.Source, appName)
// if the service is integrated in another deployment, we need to add the volume