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
merged 1 commit into from
Apr 18, 2024
Merged

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

merged 1 commit into from
Apr 18, 2024

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.

pkg/controller/ecs/service/setup.go Outdated Show resolved Hide resolved
pkg/controller/ecs/service/setup.go Outdated Show resolved Hide resolved
@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 requested a review from MisterMX April 17, 2024 10:02
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