diff --git a/builder/parser/parser.go b/builder/parser/parser.go index 738d79439..7560f5d8f 100644 --- a/builder/parser/parser.go +++ b/builder/parser/parser.go @@ -236,10 +236,10 @@ var dbImageKey = []string{ func DetermineDeployType(imageName Image) string { for _, key := range dbImageKey { if strings.ToLower(imageName.GetSimpleName()) == key { - return dbmodel.ServiceTypeStatelessSingleton.String() // TODO fanyangyang 通过镜像要挂载的存储确定更细致的组件类型 + return dbmodel.ServiceTypeStatelessSingleton.String() } } - return dbmodel.ServiceTypeStatelessSingleton.String() + return dbmodel.ServiceTypeStatelessMultiple.String() } //readmemory diff --git a/builder/parser/source_code.go b/builder/parser/source_code.go index c5f42b82f..a37d11c9c 100644 --- a/builder/parser/source_code.go +++ b/builder/parser/source_code.go @@ -485,7 +485,7 @@ func (d *SourceCodeParse) GetServiceInfo() []ServiceInfo { Branchs: d.GetBranchs(), Memory: d.memory, Lang: d.GetLang(), - ServiceType: model.ServiceTypeStatelessSingleton.String(), // TODO fanyangyang 使用存储确定组件类型 + ServiceType: model.ServiceTypeStatelessMultiple.String(), } var res []ServiceInfo if d.isMulti && d.services != nil && len(d.services) > 0 {