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

Implement cf route command #2205

Merged
merged 1 commit into from
Sep 15, 2021

Conversation

mkocher
Copy link
Member

@mkocher mkocher commented Sep 9, 2021

cf route can be used to see details about a route and mapped destinations. Handles http & tcp routes. Shows http1/http2/tcp protocol for destinations.

Will not error if used on older cloud controllers but destination protocols will be blank.

Co-authored-by: Matthew Kocher mkocher@pivotal.io
Co-authored-by: Merric de Launey mdelauney@pivotal.io

Does this PR modify CLI v6 or v7?

Targeting v8 for now. May need to be backported to v7 at some point.

Description of the Change

Adds command to see route details.

Why Should This Be In Core?

Routes are a build in feature of CF

Applicable Issues

#2187
cloudfoundry/routing-release#200

How Urgent Is The Change?

Looking to declare GA support for http2 soon.

Integration Tests

We added integration tests and made them pass. Some integration tests were failing on our environment that seemed unrelated.

`cf route` can be used to see details about a route and mapped destinations. Handles http &
tcp routes. Shows http1/http2/tcp protocol for destinations.

Will not error if used on older cloud controllers but destination
protocols will be blank.

Co-authored-by: Matthew Kocher <mkocher@pivotal.io>
Co-authored-by: Merric de Launey <mdelauney@pivotal.io>
{"routes", "create-route", "check-route", "map-route", "unmap-route", "delete-route", "delete-orphaned-routes"},
{"routes", "route"},
{"create-route", "check-route", "map-route", "unmap-route", "delete-route"},
{"delete-orphaned-routes"},
Copy link
Contributor

@jdgonzaleza jdgonzaleza Sep 10, 2021

Choose a reason for hiding this comment

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

Any reason why we are reorganizing this slice?
cc: @bepotts @a-b

Copy link
Contributor

@jdgonzaleza jdgonzaleza left a comment

Choose a reason for hiding this comment

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

LGTM
cc: @a-b @bpotts

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.

2 participants