From 2c62be9f1cd53e00f2e5486b0ea994701c9e02af Mon Sep 17 00:00:00 2001 From: "Bruno Martins (bjm)" Date: Fri, 13 Sep 2024 11:35:20 +0100 Subject: [PATCH] fix ecs DesiredCount/RunningCount check Signed-off-by: Bruno Martins (bjm) (cherry picked from commit acf33a2bad918497f6b58891d0e8584c0f6b3c51) --- pkg/controller/ecs/service/setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/ecs/service/setup.go b/pkg/controller/ecs/service/setup.go index 47756840a7..16a68b0b70 100644 --- a/pkg/controller/ecs/service/setup.go +++ b/pkg/controller/ecs/service/setup.go @@ -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())