From acf33a2bad918497f6b58891d0e8584c0f6b3c51 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) --- 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())