mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
fix service type while check service
This commit is contained in:
parent
4393dddc63
commit
ef5e85a654
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user