Skip to content

Commit

Permalink
Merge pull request #2090 from pintonunes/fix-ecs-desiredCount-running…
Browse files Browse the repository at this point in the history
…Count

fix(ecs): DesiredCount/RunningCount check
  • Loading branch information
MisterMX authored Sep 16, 2024
2 parents e824b15 + acf33a2 commit e395812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/ecs/service/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func postObserve(_ context.Context, cr *svcapitypes.Service, resp *svcsdk.Descri

switch aws.StringValue(resp.Services[0].Status) {
case "ACTIVE":
if resp.Services[0].DesiredCount != resp.Services[0].RunningCount {
if resp.Services[0].DesiredCount == nil || resp.Services[0].RunningCount == nil || *resp.Services[0].DesiredCount != *resp.Services[0].RunningCount {
cr.SetConditions(xpv1.Creating())
} else {
cr.SetConditions(xpv1.Available())
Expand Down

0 comments on commit e395812

Please sign in to comment.