[Agent][Deploy] - 修改ImageSync模块 大量修改
This commit is contained in:
@@ -100,8 +100,11 @@ func ImageFullNameToGzipFileName(imageFullName string) (gzipFileName string) {
|
||||
if len(first) == 3 {
|
||||
// harbor.cdcyy.cn/cmii/cmii-uav-platform:5.4.0
|
||||
// docker.io/ossr/srs:v5.0.1
|
||||
// docker.107421.xyz/rancher/calico-cni:v3.17.2
|
||||
if strings.HasPrefix(split[0], CmiiHarborPrefix) {
|
||||
gzipFileName += "cmlc=cmii="
|
||||
} else if strings.Contains(split[0], "rancher") {
|
||||
gzipFileName += "docker=rancher="
|
||||
} else {
|
||||
gzipFileName += "docker=cmii="
|
||||
}
|
||||
@@ -111,6 +114,7 @@ func ImageFullNameToGzipFileName(imageFullName string) (gzipFileName string) {
|
||||
} else if len(first) == 4 {
|
||||
// harbor.cdcyy.cn/cmii/ossr/srs:v5.0.1
|
||||
// harbor.cdcyy.com.cn/cmii/cmlc-ai/cmlc-ai-operator:v5.2.0-t4-no-dino
|
||||
|
||||
if !strings.HasPrefix(split[0], CmiiHarborPrefix) {
|
||||
return imageFullName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user