Skip to content

Commit

Permalink
Merge pull request #2092 from crossplane-contrib/backport-2090-to-rel…
Browse files Browse the repository at this point in the history
…ease-0.49

[Backport release-0.49] fix(ecs): DesiredCount/RunningCount check
  • Loading branch information
MisterMX authored Sep 16, 2024
2 parents b9e3222 + 2c62be9 commit b3c0d66
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 b3c0d66

Please sign in to comment.