- Add new command "front" with flags for replica count and vendor - Implement front app build logic in maker.AppFront method - Add minio to make command list - Add minio and minio-init images to image list - Change EMQX dependency path to "dependency/emqx" - Update app OEM logic to use model.GetVendor for vendor info - Fix app OEM download and rename logic with updated vendor fields - Modify nginx deployment manifest to allow configurable replicas - Update user app mysql address to mysql-cluster-mysql-master.db-mysql:3306 - Add server_license_init.conf generation script for configmap upsert - Clean and reformat imports across several files - Remove unused package files for make.mysql.go, make.redis.go, make.longhorn.go
59 lines
2.1 KiB
Go
59 lines
2.1 KiB
Go
package model
|
|
|
|
type Vendor struct {
|
|
Name string
|
|
OEMUrl string
|
|
OEMDir string
|
|
AppFrontUserImageName string
|
|
AppFrontAdminImageName string
|
|
}
|
|
|
|
var (
|
|
vendorMap = map[string]*Vendor{
|
|
"standard": &Vendor{
|
|
Name: "Standard",
|
|
OEMUrl: "https://artifactory.yizhisec.com/artifactory/yizhisec-release/oem/release/2.1.0-std/oem.tar.gz",
|
|
OEMDir: "oem",
|
|
AppFrontUserImageName: "hub.yizhisec.com/hybridscope/v2/front-user:latest",
|
|
AppFrontAdminImageName: "hub.yizhisec.com/build/hybirdscope/front/admin:latest",
|
|
},
|
|
"elink": &Vendor{
|
|
Name: "elink",
|
|
OEMUrl: "https://artifactory.yizhisec.com/artifactory/yizhisec-release/oem/release/2.1.0-std/oem_csgElink.tar.gz",
|
|
OEMDir: "oem_csgElink",
|
|
AppFrontUserImageName: "hub.yizhisec.com/hybridscope/v2/front-user-elink:latest",
|
|
AppFrontAdminImageName: "hub.yizhisec.com/build/hybirdscope/front/admin:latest",
|
|
},
|
|
"noah": &Vendor{
|
|
Name: "noah",
|
|
OEMUrl: "https://artifactory.yizhisec.com/artifactory/yizhisec-release/oem/release/2.1.0-std/oem_noah.tar.gz",
|
|
OEMDir: "oem_noah",
|
|
AppFrontUserImageName: "hub.yizhisec.com/hybridscope/v2/front-user:latest",
|
|
AppFrontAdminImageName: "hub.yizhisec.com/build/hybirdscope/front/admin:latest",
|
|
},
|
|
"heishuimeng": &Vendor{
|
|
Name: "heishuimeng",
|
|
OEMUrl: "https://artifactory.yizhisec.com/artifactory/yizhisec-release/oem/release/2.1.0-std/oem_heishuimeng.tar.gz",
|
|
OEMDir: "oem_heishuimeng",
|
|
AppFrontUserImageName: "hub.yizhisec.com/hybridscope/v2/front-user:latest",
|
|
AppFrontAdminImageName: "hub.yizhisec.com/build/hybirdscope/front/admin:latest",
|
|
},
|
|
}
|
|
)
|
|
|
|
func GetVendor(name string) *Vendor {
|
|
if vendor, ok := vendorMap[name]; ok {
|
|
return vendor
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func GetVendorNames() []string {
|
|
names := make([]string, 0, len(vendorMap))
|
|
for name := range vendorMap {
|
|
names = append(names, name)
|
|
}
|
|
return names
|
|
}
|