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

Enable CF API to present routable field for app processes #3500

Merged
merged 2 commits into from Nov 2, 2023

Conversation

geofffranks
Copy link
Contributor

This enables CF API clients to provide feedback to developers on whether apps are currently passing readiness checks and are routable.

https://github.com/cloudfoundry/community/blob/main/toc/rfc/rfc-0020-readiness-healthchecks.md#cli-changes

Shows whether or not the app's readiness check is passing on an
app instance, and whether or not if routes will be sent to it.

Signed-off-by: Brandon Roberson <broberson@vmware.com>
Co-authored-by: Brandon Roberson <broberson@vmware.com>
@geofffranks
Copy link
Contributor Author

As is, this PR may cause confusion for clients if this code is used in conjunction with a diego release that doesn't support readiness checks. If diego doesn't provide routable, right now the endpoint will return false. So valid + routable processes would get flagged with routable: false on the CF API, simply because diego didn't know about app readiness checks.

@geofffranks
Copy link
Contributor Author

Ok, pushed up a commit that's more compatible with environments where CAPI supports readiness but diego doesn't.

…pport readiness checks

Signed-off-by: Geoff Franks <gfranks@vmware.com>
Signed-off-by: Brandon Roberson <broberson@vmware.com>
Signed-off-by: Geoff Franks <gfranks@vmware.com>
@philippthun philippthun merged commit 110b23d into cloudfoundry:main Nov 2, 2023
7 checks passed
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.

None yet

3 participants