[agent-go] - 启动时候名称的选择

This commit is contained in:
zeaslity
2024-04-29 15:08:12 +08:00
parent 060c61aefe
commit aba731e719
4 changed files with 85 additions and 6 deletions

View File

@@ -443,6 +443,8 @@ func (op *CmiiK8sOperator) DeploymentUpdateTag(cmiiEnv, appName, newTag string)
// 更新Cmii BIZ_GROUP
tagVersion := newTag
if strings.Contains(newTag, "-") {
// 5.0.0-1243
// 5.0.0-1243-1234
tagVersion = strings.Split(newTag, "-")[0]
}
envList := container.Env