fix service type while check service

This commit is contained in:
凡羊羊 2020-02-19 23:02:25 +08:00
parent 4393dddc63
commit ef5e85a654
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 {