-
Notifications
You must be signed in to change notification settings - Fork 70
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
Replace CFRoute Valid/Invalid with the Ready condition #3305
Conversation
I haven't had a chance to look at the change itself too deeply yet (plan on doing so later today), but wanted to share some context around the original design here. The I think it is fine to consolidate this type of information under the cc @davewalter who wrote that original issue |
The motivation of replacing I kind of feel that the name of the condition - As per ergonomics - whether users are looking into a single condition, or two - I don't think it matters so much. A single condition just makes the code simpler. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good. We tried to model the status after the way Contour reports the status of its resources but I understand that this is non-standard and could make it harder to implement an alternative routing layer on top of something like Istio. The original vision was to bubble the real-time status from the underlying resources up to the CFRoute's status for visibility, but this was never implemented.
The merge-base changed after approval.
The `Ready` status condition is becoming the standard for Korifi resources, therefore let's get rid of the `Valid` and `Invalid` conditions in favour of the `Ready` one. Thus the CFRoute status reconciliation code could be significantly simplified as we already have the readyConditionBuilder utility in place. Noone seems to care about `Valid`/`Invalid` status conditions, noone cares about the `Ready` condition as well. However, having a standard `Ready` condition is good (see #2098) While being here, `CFRoute.Status.Description` and `CFRoute.Status.CurrentStatus` are removed (as again, noone cares) - hopefully this is not an incompatible change. If anyone ever gets interested whether the route is OK, they should check the `Ready` condition instead. issue: #3304
9d20235
to
4ba96b3
Compare
Is there a related GitHub Issue?
#3304
What is this change about?
Based on PR #3303
The
Ready
status condition is becoming the standard for Korifiresources, therefore let's get rid of the
Valid
andInvalid
conditions in favour of the
Ready
one. Thus the CFRoute statusreconciliation code could be significantly simplified as we already have
the readyConditionBuilder utility in place.
Noone seems to care about
Valid
/Invalid
status conditions, noonecares about the
Ready
condition as well. However, having a standardReady
condition is good (see #2098)While being here,
CFRoute.Status.Description
andCFRoute.Status.CurrentStatus
are removed (asagain, noone cares) - hopefully this is not an incompatible change. If
anyone ever gets interested whether the route is OK, they should check
the
Ready
condition instead.Does this PR introduce a breaking change?
No
Acceptance Steps
No functional change
Tag your pair, your PM, and/or team
@cloudfoundry/wg-cf-on-k8s