Skip to content

Commit

Permalink
Add NodePort and Loadbalancer to services web ui
Browse files Browse the repository at this point in the history
Remove PublicIPs
  • Loading branch information
bcbroussard committed Jun 15, 2015
1 parent 19a7e87 commit 90b0b5c
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 68 deletions.
118 changes: 62 additions & 56 deletions pkg/ui/datafile.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion www/app/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1729,7 +1729,7 @@ app.controller('ListServicesCtrl', [
var n = '';
if(p.name)
n = p.name + ': ';
n = n + p.port;
n = n + p.port;
return n;
}).join(', ');
}
Expand Down
2 changes: 1 addition & 1 deletion www/app/components/dashboard/views/replication.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</div>

<div ng-repeat="(label, value) in replicationController.spec.selector">
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}={{value}}</a>
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
</div>
</td>
</tr>
Expand Down
14 changes: 10 additions & 4 deletions www/app/components/dashboard/views/service.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
{{port.name}}:
</span>
{{port.port}}/{{port.protocol}}

<div ng-show="port.nodePort && port.nodePort != 0">
Node Port: {{port.nodePort}}/{{port.protocol}}
</div>

</div>
</td>
</tr>
Expand All @@ -43,10 +48,12 @@
</td>
</tr>

<tr ng-show="service.spec.publicIPs">
<td class="name">Public IPs</td>
<tr ng-show="service.status.loadBalancer.ingress">
<td class="name">LoadBalancer Ingress</td>
<td class="value">
{{service.spec.publicIPs | join:', '}}
<span ng-repeat="lb in service.status.loadBalancer.ingress">
{{lb.ip || lb.hostname}}{{$last ? '' : ', '}}
</span>
</td>
</tr>

Expand Down Expand Up @@ -75,7 +82,6 @@
</td>
</tr>


<tr>
<td class="name">Related Pods</td>
<td class="value">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ app.controller('ListServicesCtrl', [
var n = '';
if(p.name)
n = p.name + ': ';
n = n + p.port;
n = n + p.port;
return n;
}).join(', ');
}
Expand Down
2 changes: 1 addition & 1 deletion www/master/components/dashboard/views/replication.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</div>

<div ng-repeat="(label, value) in replicationController.spec.selector">
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}={{value}}</a>
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
</div>
</td>
</tr>
Expand Down
14 changes: 10 additions & 4 deletions www/master/components/dashboard/views/service.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
{{port.name}}:
</span>
{{port.port}}/{{port.protocol}}

<div ng-show="port.nodePort && port.nodePort != 0">
Node Port: {{port.nodePort}}/{{port.protocol}}
</div>

</div>
</td>
</tr>
Expand All @@ -43,10 +48,12 @@
</td>
</tr>

<tr ng-show="service.spec.publicIPs">
<td class="name">Public IPs</td>
<tr ng-show="service.status.loadBalancer.ingress">
<td class="name">LoadBalancer Ingress</td>
<td class="value">
{{service.spec.publicIPs | join:', '}}
<span ng-repeat="lb in service.status.loadBalancer.ingress">
{{lb.ip || lb.hostname}}{{$last ? '' : ', '}}
</span>
</td>
</tr>

Expand Down Expand Up @@ -75,7 +82,6 @@
</td>
</tr>


<tr>
<td class="name">Related Pods</td>
<td class="value">
Expand Down

0 comments on commit 90b0b5c

Please sign in to comment.