Skip to content

Commit

Permalink
fix: take into consideration the DesiredCount/RunningCount for resour…
Browse files Browse the repository at this point in the history
…ce readiness
  • Loading branch information
dnlopes committed Mar 28, 2024
1 parent 637d383 commit c9a377b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controller/ecs/service/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ func postObserve(_ context.Context, cr *svcapitypes.Service, resp *svcsdk.Descri
return obs, err
}

if resp.Services[0].DesiredCount != resp.Services[0].RunningCount {
obs.ResourceUpToDate = false
return obs, nil
}

switch aws.StringValue(resp.Services[0].Status) {
case "ACTIVE":
cr.SetConditions(xpv1.Available())
Expand Down

0 comments on commit c9a377b

Please sign in to comment.