fix(nil): The service can not exist

This commit is contained in:
2024-11-22 16:11:55 +01:00
parent 7b890df1c5
commit 8aee6d9983

View File

@@ -155,7 +155,9 @@ func Generate(project *types.Project) (*HelmChart, error) {
for _, s := range podToMerge {
// get the target service
target := services[s.Name]
delete(chart.Templates, target.Filename())
if target != nil {
delete(chart.Templates, target.Filename())
}
}
// compute all needed resplacements in YAML templates