-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
status: Report routes that have no route port specified #5089
Conversation
Currently:
|
Ugh, this is WIP, need to add tests. |
It seems like routes should be somehow related to the services they're routing to in the main status section instead of just having warnings about them. Maybe an "exposed through route/foo" on the service line? |
Sure, I just need to get around the graph code as I'm not 100% familiar with it. I'll look into this tomorrow. |
@deads2k how about:
|
There's no point to showing the full DNS name until we report status to the On Oct 13, 2015, at 7:13 AM, Michail Kargakis notifications@github.com @deads2k https://github.com/deads2k how about: [vagrant@openshiftdev sample-app]$ oc status svc/database - 172.30.45.255:5434 -> 3306 svc/frontend - 172.30.182.32:5432 -> 8080 Warnings: To see more, use 'oc describe /'. — |
|
[test] |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6380/) |
"exposed pod port 5432 through route/route-edge" Otherwise review delegated to david. On Tue, Oct 13, 2015 at 10:42 AM, Michail Kargakis <notifications@github.com
|
@danmcp why jenkins is failing to execute the tests? |
@Kargakis It looks like it reran them. What didn't happen that you thought should have? |
re[test] btw |
@Kargakis Ah. Yeah that's a known issue that needs to be debugged still. |
[test] |
|
||
route: | ||
for _, uncastRouteNode := range g.NodesByKind(routegraph.RouteNodeKind) { | ||
for _, uncastServiceNode := range g.SuccessorNodesByEdgeKind(uncastRouteNode, kubeedges.ExposedThroughServiceEdgeKind) { |
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.
This doesn't look right. The error is based on whether the route has a target port. I don't think the service is a related object. It wasn't involved in the decision at all.
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.
This doesn't look right. The error is based on whether the route has a target port. I don't think the service is a related object. It wasn't involved in the decision at all.
Reading through the doc, it looks like this is only something we need to call out if the services themselves have more than one port exposed? That would be a reason for having services be related. Add the test to see if its actually a problem and then be more descriptive in the message.
For congruence in the output, try: "route/route-edge exposes pod port 5432". |
I think it's more important to indicate the service is what is being On Oct 14, 2015, at 9:34 AM, David Eads notifications@github.com wrote: For congruence in the output, try: "route/route-edge exposes pod port 5432". — |
|
The message I suggested last indented below the service is the right thing On Wed, Oct 14, 2015 at 10:45 AM, David Eads notifications@github.com
|
It makes it hard to read. |
@deads2k comments addressed plus added warning about a missing service
|
I don't agree "exposed by route/foo on pod port 8080" is what I want to see On Oct 14, 2015, at 11:12 AM, David Eads notifications@github.com wrote: The message I suggested last indented below the service is the right thing It makes it hard to read. — |
@deads2k comments addressed |
} | ||
} | ||
|
||
for _, uncastServiceFulfiller := range g.PredecessorNodesByEdgeKind(serviceNode, routeedges.ExposedThroughRouteEdgeKind) { |
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.
@deads2k the names in this package are getting ridiculous.
A few changes, revert |
Project status is broken. |
I had to update resource strings in tests. PTAL |
This commit adds graph pieces for routes and makes `oc status` report routes with missing route ports.
@smarterclayton test added |
Evaluated for origin test up to e68fa2f |
LGTM [merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6380/) (Image: devenv-rhel7_2594) |
Evaluated for origin merge up to e68fa2f |
Merged by openshift-bot
This PR adds graph pieces for routes and makes
oc status
report routes with missing route ports when they expose multiport services.@deads2k @smarterclayton @pweil- PTAL