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