瀏覽代碼

do not break bluegreen if the tag is empty (#3181)

Feroze Mohideen 3 年之前
父節點
當前提交
d35b7e6a58
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cli/cmd/deploy/deploy.go

+ 1 - 1
cli/cmd/deploy/deploy.go

@@ -359,7 +359,7 @@ func (d *DeployAgent) UpdateImageAndValues(overrideValues map[string]interface{}
 
 
 	// only overwrite if the active tag value is not the same as the target tag. otherwise
 	// only overwrite if the active tag value is not the same as the target tag. otherwise
 	// this has been modified already and inserted into overrideValues.
 	// this has been modified already and inserted into overrideValues.
-	if activeBlueGreenTagVal != "" && activeBlueGreenTagVal != d.tag {
+	if activeBlueGreenTagVal != "" && activeBlueGreenTagVal != d.tag && d.tag != "" {
 		mergedValues["bluegreen"] = map[string]interface{}{
 		mergedValues["bluegreen"] = map[string]interface{}{
 			"enabled":                  true,
 			"enabled":                  true,
 			"disablePrimaryDeployment": true,
 			"disablePrimaryDeployment": true,