Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: take into consideration the DesiredCount/RunningCount for resource readiness #2023

Merged

Conversation

dnlopes
Copy link
Contributor

@dnlopes dnlopes commented Mar 28, 2024

Currently, ECS Service resource is only taken into consideration the .Status field to decide on the readiness of the Crossplane resource.

I think this is an overlook, and Crossplane should also take into consideration the DesiredCount/RunningCount, since it is part of the input Spec. Returning ready based only on the .Status might result in returning to the client a ready state when in fact, no tasks are running yet.

Before wrapping up the PR with tests, I would like to get some feedback from you to undertstand if you agree with this change or not.

I have:

  • Read and followed Crossplane's [contribution process].
  • Run make reviewable test to ensure this PR is ready for review.

Thanks.

@dnlopes dnlopes force-pushed the fix/ecs-ready-with-desired-count branch from c9a377b to fe6b638 Compare March 28, 2024 16:19
pkg/controller/ecs/service/setup.go Outdated Show resolved Hide resolved
@dnlopes dnlopes force-pushed the fix/ecs-ready-with-desired-count branch from 430f7eb to e443005 Compare April 10, 2024 07:46
pkg/controller/ecs/service/setup.go Outdated Show resolved Hide resolved
@dnlopes dnlopes force-pushed the fix/ecs-ready-with-desired-count branch from 0e0b23b to 085a7e3 Compare April 11, 2024 09:15
@dnlopes dnlopes requested a review from MisterMX April 12, 2024 09:54
pkg/controller/ecs/service/setup.go Outdated Show resolved Hide resolved
@dnlopes dnlopes force-pushed the fix/ecs-ready-with-desired-count branch from 8e52fdd to 2a933b0 Compare April 16, 2024 08:46
@dnlopes dnlopes requested a review from MisterMX April 17, 2024 10:02
…ce readiness

Signed-off-by: David Lopes <me@davlopes.com>
Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you very much @dnlopes! I took the liberty to squash your commits into one before merging.

@MisterMX MisterMX merged commit a55852f into crossplane-contrib:master Apr 18, 2024
9 checks passed
Copy link

Successfully created backport PR #2044 for release-0.47.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants