-
Notifications
You must be signed in to change notification settings - Fork 232
add more detail to specific service types #839
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
Merged
openshift-bot
merged 1 commit into
openshift:master
from
juanvallejo:jvallejo/add-detail-other-svc-types
Dec 9, 2016
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,50 +62,47 @@ <h1> | |
<dd>{{service.spec.type}}</dd> | ||
<dt>IP:</dt> | ||
<dd>{{service.spec.clusterIP}}</dd> | ||
<dt>Hostname:</dt> | ||
<dd> | ||
{{service.metadata.name}}.{{service.metadata.namespace}}.svc | ||
<span data-toggle="popover" data-trigger="hover" data-content="{{'This address is only resolvable from within the cluster.'}}" style="cursor: help; padding-left: 5px;"> | ||
<span class="pficon pficon-info" aria-hidden="true" data-toggle="tooltip" style="cursor: help;"></span> | ||
</span> | ||
</dd> | ||
<dt ng-if-start="service.spec.externalName">External Hostname:</dt> | ||
<dd ng-if-end>{{service.spec.externalName}}</dd> | ||
<dt>Session affinity:</dt> | ||
<dd>{{service.spec.sessionAffinity}}</dd> | ||
<dt ng-if="resource.status.loadBalancer.ingress.length">Ingress points</dt> | ||
<dd ng-if="resource.status.loadBalancer.ingress.length"> | ||
<span ng-repeat="ingress in resource.status.loadBalancer.ingress" | ||
<dt ng-if-start="service.status.loadBalancer.ingress.length">Ingress Points:</dt> | ||
<dd ng-if-end> | ||
<span ng-repeat="ingress in service.status.loadBalancer.ingress" | ||
>{{ingress.ip}}<span ng-if="!$last">, </span></span> | ||
</dd> | ||
<dt>Routes:</dt> | ||
<dd> | ||
<span ng-if="!routesForService.length"> | ||
<dt ng-if-start="service.spec.externalIPs.length">External IPs:</dt> | ||
<dd ng-if-end> | ||
<span ng-repeat="externalIP in service.spec.externalIPs" | ||
>{{externalIP}}<span ng-if="!$last">, </span></span> | ||
</dd> | ||
<dt ng-if-start="(routesForService | hashSize) == 0">Routes:</dt> | ||
<dd ng-if-end> | ||
<span> | ||
<a ng-href="project/{{project.metadata.name}}/create-route?service={{service.metadata.name}}" ng-if="'routes' | canI : 'create'">Create route</a> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if user doesn't have access to create routes, this should say |
||
</span> | ||
<span ng-repeat="route in routesForService"> | ||
<span ng-if="route | isWebRoute"><a ng-href="{{route | routeWebURL}}">{{route | routeLabel}}</a></span> | ||
<span ng-if="!(route | isWebRoute)">{{route | routeLabel}}</span> | ||
<span ng-show="!$last">, </span> | ||
<span ng-if="!('routes' | canI : 'create')"><em>None</em></span> | ||
</span> | ||
</dd> | ||
</dl> | ||
<div ng-if="service.spec.ports.length" class="table-responsive"> | ||
<table class="table table-bordered small service-table"> | ||
<thead> | ||
<tr> | ||
<th>Node Port</th> | ||
<th role="presentation"></th> | ||
<th>Service Port</th> | ||
<th role="presentation"></th> | ||
<th>Target Port</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-repeat="portMapping in service.spec.ports | orderBy:'port'"> | ||
<td> | ||
<span ng-if="portMapping.nodePort">{{portMapping.nodePort}}</span> | ||
<span ng-if="!portMapping.nodePort" class="text-muted">none</span> | ||
</td> | ||
<td role="presentation" class="text-muted">→</td> | ||
<td>{{portMapping.port}}/{{portMapping.protocol}} | ||
<span ng-if="portMapping.name">({{portMapping.name}})</span></td> | ||
<td role="presentation" class="text-muted">→</td> | ||
<td>{{portMapping.targetPort}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<h3> | ||
Traffic | ||
</h3> | ||
<div class="table-responsive"> | ||
<traffic-table ports-by-route="portsByRoute" routes="routesForService" services="services" show-node-ports="showNodePorts" custom-name-header="'Route'"></traffic-table> | ||
</div> | ||
<div style="margin:-10px 0 10px 0;"> | ||
Learn more about <a ng-href="{{'route-types' | helpLink}}" target="_blank">routes</a> and <a ng-href="{{'services' | helpLink}}" target="_blank">services</a> | ||
</div> | ||
<h3>Pods</h3> | ||
<div class="table-responsive"> | ||
<pods-table pods="podsForService" active-pods="podsWithEndpoints" custom-name-header="'Pod'" pod-failure-reasons="podFailureReasons"></pods-table> | ||
</div> | ||
<annotations annotations="service.metadata.annotations"></annotations> | ||
</div> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<!-- Table combining routes and ports for a service --> | ||
<table class="table table-bordered table-hover table-mobile"> | ||
<thead> | ||
<tr> | ||
<th>{{customNameHeader || 'Route'}}<span ng-if="showNodePorts"> / Node Port</span></th> | ||
<th role="presentation"></th> | ||
<th>Service Port</th> | ||
<th role="presentation"></th> | ||
<th>Target Port</th> | ||
<th>Hostname</th> | ||
<th>TLS Termination</th> | ||
</tr> | ||
</thead> | ||
<tbody ng-if="(portsByRoute | hashSize) == 0"> | ||
<tr><td colspan="7"><em>{{emptyMessage || 'No routes or ports to show'}}</em></td></tr> | ||
</tbody> | ||
<tbody ng-if="(portsByRoute | hashSize) > 0"> | ||
<tr ng-repeat-start="(routeName,ports) in portsByRoute" style="display:none;"></tr> | ||
<tr ng-repeat="port in ports" ng-if="routeName !== ''"> | ||
<td data-title="{{customNameHeader || 'Route'}}{{ showNodePorts ? ' / Node Port' : '' }}"> | ||
<a href="{{routes[routeName] | navigateResourceURL}}">{{routes[routeName].metadata.name}}</a> | ||
<route-warnings ng-if="routes[routeName].spec.to.kind !== 'Service' || services" | ||
route="routes[routeName]" | ||
service="services[routes[routeName].spec.to.name]"> | ||
</route-warnings> | ||
<span ng-if="showNodePorts"> | ||
<span ng-if="port.nodePort"> / {{port.nodePort}}</span> | ||
</span> | ||
</td> | ||
<td role="presentation" class="text-muted">→</td> | ||
<td data-title="Service Port"> | ||
{{port.port}}/{{port.protocol}} | ||
<span ng-if="port.name">({{port.name}})</span> | ||
</td> | ||
<td role="presentation" class="text-muted">→</td> | ||
<td data-title="Target Port"> | ||
{{port.targetPort}} | ||
</td> | ||
<td data-title="Hostname"> | ||
<span ng-if="(routes[routeName] | isWebRoute)" class="word-break"> | ||
<a href="{{routes[routeName] | routeWebURL}}" target="_blank">{{routes[routeName] | routeLabel}}</a> | ||
</span> | ||
<span ng-if="!(routes[routeName] | isWebRoute)" class="word-break"> | ||
{{routes[routeName] | routeLabel}} | ||
</span> | ||
<span ng-if="!routes[routeName].status.ingress" data-toggle="popover" data-trigger="hover" data-content="The route is not accepting traffic yet because it has not been admitted by a router." style="cursor: help; padding-left: 5px;"> | ||
<status-icon status="'Pending'" disable-animation></status-icon> | ||
<span class="sr-only">Pending</span> | ||
</span> | ||
</td> | ||
<!-- Use shorter Termination title for table-mobile to avoid overlapping text. --> | ||
<td data-title="Termination"> | ||
{{routes[routeName].spec.tls.termination}} | ||
<span ng-if="!routes[routeName].spec.tls.termination"> </span> | ||
</td> | ||
</tr> | ||
<tr ng-repeat-end style="display:none;"></tr> | ||
<tr ng-repeat="port in portsByRoute['']"> | ||
<td data-title="{{customNameHeader || 'Route'}}{{ showNodePorts ? ' / Node Port' : '' }}"> | ||
<span ng-if="!port.nodePort" class="text-muted">none</span> | ||
<span ng-if="port.nodePort">{{port.nodePort}}</span> | ||
</td> | ||
<td role="presentation" class="text-muted">→</td> | ||
<td data-title="Service Port"> | ||
{{port.port}}/{{port.protocol}} | ||
<span ng-if="port.name">({{port.name}})</span> | ||
</td> | ||
<td role="presentation" class="text-muted">→</td> | ||
<td data-title="Target Port"> | ||
{{port.targetPort}} | ||
</td> | ||
<td data-title="Hostname"><span class="text-muted">none</span></td> | ||
<td data-title="Termination"> | ||
<span class="text-muted">none</span> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@spadgett you are more familiar with the route / port stuff, can you review this section
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.
It looks correct.