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

Add an AllTrue readiness policy #143

Merged
merged 1 commit into from
Dec 10, 2023
Merged

Conversation

recht
Copy link
Contributor

@recht recht commented Oct 5, 2023

This checks that all conditions are true, and if so marks the object as ready.

Description of your changes

Fixes #124

I have:

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

How has this code been tested

Unit tested and deployed locally and verified that deployment objects are marked appropriately when healthy/unhealthy.

This checks that all conditions are true, and if so marks the object as ready.

Signed-off-by: Joakim Recht <[email protected]>
Copy link
Collaborator

@phisco phisco left a comment

Choose a reason for hiding this comment

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

Make sense to me, should probably be used with care as it could be "brittle" maybe, but would definitely be useful.

@phisco phisco requested review from lsviben and turkenh December 8, 2023 15:44
Copy link
Collaborator

@lsviben lsviben left a comment

Choose a reason for hiding this comment

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

LGTM

@phisco phisco merged commit f89244d into crossplane-contrib:main Dec 10, 2023
@bobh66
Copy link
Contributor

bobh66 commented Dec 11, 2023

@recht Thanks for this - I just came across a use case where this will be very helpful.

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

Successfully merging this pull request may close these issues.

DeriveFromObject readiness doesn't work for a Job object
4 participants