mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #8368 from bcbroussard/web-ui-updates
Update web ui listing pages
This commit is contained in:
commit
c4ab34f7f9
17468
pkg/ui/datafile.go
17468
pkg/ui/datafile.go
File diff suppressed because it is too large
Load Diff
@ -1258,7 +1258,6 @@ app.controller('ListPodsCtrl', [
|
|||||||
$scope.serverView = false;
|
$scope.serverView = false;
|
||||||
|
|
||||||
$scope.headers = [
|
$scope.headers = [
|
||||||
{name: '', field: 'thumb'},
|
|
||||||
{name: 'Pod', field: 'pod'},
|
{name: 'Pod', field: 'pod'},
|
||||||
{name: 'IP', field: 'ip'},
|
{name: 'IP', field: 'ip'},
|
||||||
{name: 'Status', field: 'status'},
|
{name: 'Status', field: 'status'},
|
||||||
@ -1278,7 +1277,6 @@ app.controller('ListPodsCtrl', [
|
|||||||
status: 'grey'
|
status: 'grey'
|
||||||
};
|
};
|
||||||
$scope.sortable = ['pod', 'ip', 'status'];
|
$scope.sortable = ['pod', 'ip', 'status'];
|
||||||
$scope.thumbs = 'thumb';
|
|
||||||
$scope.count = 10;
|
$scope.count = 10;
|
||||||
|
|
||||||
$scope.go = function(d) { $location.path('/dashboard/pods/' + d.id); };
|
$scope.go = function(d) { $location.path('/dashboard/pods/' + d.id); };
|
||||||
@ -1323,18 +1321,19 @@ app.controller('ListPodsCtrl', [
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Object.keys(pod.labels)
|
if (pod.labels) {
|
||||||
.forEach(function(key) {
|
Object.keys(pod.labels)
|
||||||
if (key == 'name') {
|
.forEach(function(key) {
|
||||||
_labels += ', ' + pod.labels[key];
|
if (key == 'name') {
|
||||||
}
|
_labels += ', ' + pod.labels[key];
|
||||||
if (key == 'uses') {
|
}
|
||||||
_uses += ', ' + pod.labels[key];
|
if (key == 'uses') {
|
||||||
}
|
_uses += ', ' + pod.labels[key];
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$scope.content.push({
|
$scope.content.push({
|
||||||
thumb: '"assets/img/kubernetes.svg"',
|
|
||||||
pod: pod.id,
|
pod: pod.id,
|
||||||
ip: pod.currentState.podIP,
|
ip: pod.currentState.podIP,
|
||||||
containers: _fixComma(_containers),
|
containers: _fixComma(_containers),
|
||||||
|
@ -16,7 +16,6 @@ app.controller('ListPodsCtrl', [
|
|||||||
$scope.serverView = false;
|
$scope.serverView = false;
|
||||||
|
|
||||||
$scope.headers = [
|
$scope.headers = [
|
||||||
{name: '', field: 'thumb'},
|
|
||||||
{name: 'Pod', field: 'pod'},
|
{name: 'Pod', field: 'pod'},
|
||||||
{name: 'IP', field: 'ip'},
|
{name: 'IP', field: 'ip'},
|
||||||
{name: 'Status', field: 'status'},
|
{name: 'Status', field: 'status'},
|
||||||
@ -36,7 +35,6 @@ app.controller('ListPodsCtrl', [
|
|||||||
status: 'grey'
|
status: 'grey'
|
||||||
};
|
};
|
||||||
$scope.sortable = ['pod', 'ip', 'status'];
|
$scope.sortable = ['pod', 'ip', 'status'];
|
||||||
$scope.thumbs = 'thumb';
|
|
||||||
$scope.count = 10;
|
$scope.count = 10;
|
||||||
|
|
||||||
$scope.go = function(d) { $location.path('/dashboard/pods/' + d.id); };
|
$scope.go = function(d) { $location.path('/dashboard/pods/' + d.id); };
|
||||||
@ -81,18 +79,19 @@ app.controller('ListPodsCtrl', [
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Object.keys(pod.labels)
|
if (pod.labels) {
|
||||||
.forEach(function(key) {
|
Object.keys(pod.labels)
|
||||||
if (key == 'name') {
|
.forEach(function(key) {
|
||||||
_labels += ', ' + pod.labels[key];
|
if (key == 'name') {
|
||||||
}
|
_labels += ', ' + pod.labels[key];
|
||||||
if (key == 'uses') {
|
}
|
||||||
_uses += ', ' + pod.labels[key];
|
if (key == 'uses') {
|
||||||
}
|
_uses += ', ' + pod.labels[key];
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$scope.content.push({
|
$scope.content.push({
|
||||||
thumb: '"assets/img/kubernetes.svg"',
|
|
||||||
pod: pod.id,
|
pod: pod.id,
|
||||||
ip: pod.currentState.podIP,
|
ip: pod.currentState.podIP,
|
||||||
containers: _fixComma(_containers),
|
containers: _fixComma(_containers),
|
||||||
|
Loading…
Reference in New Issue
Block a user