Skip to content

Commit

Permalink
fix ecs DesiredCount/RunningCount check
Browse files Browse the repository at this point in the history
  • Loading branch information
bmartins-unit committed Sep 13, 2024
1 parent 34115e2 commit 9d6d25f
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 9d6d25f

Please sign in to comment.