From 3f540688701b10dc91091869c9a398acdf7c49ec Mon Sep 17 00:00:00 2001 From: GwonsooLee Date: Thu, 21 Jan 2021 10:58:16 +0900 Subject: [PATCH] hotfix rolling update --- pkg/deployer/deployer.go | 7 +------ pkg/templates/templates.go | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pkg/deployer/deployer.go b/pkg/deployer/deployer.go index 5b1bcd4..ffa55e0 100644 --- a/pkg/deployer/deployer.go +++ b/pkg/deployer/deployer.go @@ -107,12 +107,7 @@ func (d *Deployer) Polling(region schemas.RegionConfig, asg *autoscaling.Group, return false, fmt.Errorf("no autoscaling found for %s", d.AsgNames[region.Region]) } - var threshold int64 - if !forceManifestCapacity && d.PrevInstanceCount[region.Region].Desired > d.Stack.Capacity.Desired && d.Mode != constants.CanaryDeployment { - threshold = d.PrevInstanceCount[region.Region].Desired - } else { - threshold = d.AppliedCapacity.Desired - } + threshold := d.AppliedCapacity.Desired if region.HealthcheckTargetGroup == "" && region.HealthcheckLB == "" { d.Logger.Info("health check skipped because of neither target group nor classic load balancer specified") diff --git a/pkg/templates/templates.go b/pkg/templates/templates.go index 1839861..aba74e9 100644 --- a/pkg/templates/templates.go +++ b/pkg/templates/templates.go @@ -30,6 +30,7 @@ Configurations of stacks {{ decorate "underline bold" "Stack" }}: {{ $stack.Account }} {{ decorate "underline bold" "Account" }}: {{ $stack.Account }} {{ decorate "underline bold" "Replacement Type" }}: {{ $stack.ReplacementType }} +{{ decorate "underline bold" "Rolling Update Instance Count" }}: {{ $stack.RollingUpdateInstanceCount }} {{ decorate "underline bold" "Environment" }}: {{ $stack.Env }} {{ decorate "underline bold" "IAM Instance Profile" }}: {{ $stack.IamInstanceProfile }} {{- if gt (len $stack.Tags) 0 }}