Skip to content

Commit

Permalink
fix ecs DesiredCount/RunningCount check
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Martins (bjm) <[email protected]>
(cherry picked from commit acf33a2)
  • Loading branch information
bmartins-unit authored and github-actions[bot] committed Sep 16, 2024
1 parent b9e3222 commit 2c62be9
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 2c62be9

Please sign in to comment.