[ Agent ] [ CMII ] - 新增Deployment的Kill更新模式

This commit is contained in:
zeaslity
2024-01-12 17:32:36 +08:00
parent 55454eedbe
commit 6df4587106
5 changed files with 59 additions and 17 deletions

View File

@@ -218,7 +218,7 @@ func UpdateCmiiDeploymentImageTag(cmiiEnv, appName, newTag string) bool {
log.DebugF("[UpdateCmiiDeploymentImageTag] - prepare to update [%s]!", content)
// update
tag := CmiiOperator.DeploymentUpdateTag(cmiiEnv, appName, newTag)
tag := CmiiOperator.DeploymentUpdateTag(cmiiDeploymentInterface.Namespace, cmiiDeploymentInterface.Name, newTag)
if !tag {
log.ErrorF("[UpdateCmiiDeploymentImageTag] - [%s] update failed !", content)
return false