Skip to content

Commit d3a9ff9

Browse files
committed
chore: bump default version numbers for Zentao DevOPS components
- Update the default version numbers for Zentao DevOPS components - Change the default version for Zentao DevOPS OSS from 21.7.1 to 21.7.2 - Modify the default version for Zentao DevOPS Max from 7.0 to 7.1 - Adjust the default version for Zentao DevOPS Biz from 12.0 to 12.1 - Update the default version for Zentao DevOPS IPD from 4.0 to 4.1 - Remove unnecessary condition checking for suffix ".0" in GetVersion function Signed-off-by: ysicing <i@ysicing.me>
1 parent e1fb67b commit d3a9ff9

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

common/const.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ const (
4545
const (
4646
DefaultQuickonOSSVersion = "3.0.2" // 开源版本
4747
DefaultQuickonEEVersion = "1.0"
48-
DefaultZentaoDevOPSOSSVersion = "21.7.1"
49-
DefaultZentaoDevOPSMaxVersion = "7.0"
50-
DefaultZentaoDevOPSBizVersion = "12.0"
51-
DefaultZentaoDevOPSIPDVersion = "4.0"
48+
DefaultZentaoDevOPSOSSVersion = "21.7.2"
49+
DefaultZentaoDevOPSMaxVersion = "7.1"
50+
DefaultZentaoDevOPSBizVersion = "12.1"
51+
DefaultZentaoDevOPSIPDVersion = "4.1"
5252
K3sBinName = "k3s"
5353
K3sBinPath = "/usr/local/bin/k3s"
5454
HelmBinName = "helm"

common/func.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ func GetVersion(devops bool, typ, version string) string {
7676
case string(ZenTaoMaxType):
7777
defaultVersion = DefaultZentaoDevOPSMaxVersion
7878
}
79-
if strings.HasSuffix(defaultVersion, ".0") {
80-
defaultVersion = strings.TrimSuffix(defaultVersion, ".0")
81-
}
79+
defaultVersion = strings.TrimSuffix(defaultVersion, ".0")
8280
return defaultVersion
8381
}
8482

0 commit comments

Comments
 (0)