duration: ' + y + ' seconds
'; - if (date) { - tooltip += 'started: ' + date + '
'; - } - if (result) { - tooltip += 'result: ' + result + '
'; - } - if (x) { - var data = buildsSucceeded; - var key = successBuildKey; - if (!successBuildKey && (!result || !result.startsWith("SUCC"))) { - data = buildsFailed; - key = failedBuildKey; - } - data.push({ - tooltip: tooltip, - color: color, - x: x, y: y }); - } - }); - $scope.data = []; - if (buildsSucceeded.length) { - $scope.data.push({ - key: successBuildKey, - values: buildsSucceeded - }); - } - if (buildsFailed.length) { - $scope.data.push({ - key: failedBuildKey, - values: buildsFailed - }); - } - $scope.api.updateWithData($scope.data); - $timeout(function () { - $scope.api.update(); - }, 50); - } function updateData() { - var metricsPath = $scope.jobId ? UrlHelpers.join("job", $scope.jobId, "fabric8/metrics") : "fabric8/metrics"; - var url = Kubernetes.kubernetesProxyUrlForServiceCurrentNamespace(Developer.jenkinsServiceNameAndPort, metricsPath); - Developer.log.info(""); - if (url && (!$scope.jenkins || Kubernetes.keepPollingModel)) { - $http.get(url, Developer.jenkinsHttpConfig). + $scope.item = null; + if ($scope.id) { + var url = Kubernetes.deploymentConfigRestUrl($scope.id); + $http.get(url). success(function (data, status, headers, config) { if (data) { - if (Developer.hasObjectChanged(data, $scope.entityChangedCache)) { - Developer.log.info("entity has changed!"); - $scope.metrics = data; - updateChartData(); - } + $scope.entity = data; + Kubernetes.enrichDeploymentConfig(data); } - $scope.model.fetched = true; + $scope.fetched = true; Core.$apply($scope); }). error(function (data, status, headers, config) { - Developer.log.warn("Failed to load " + url + " " + data + " " + status); + Kubernetes.log.warn("Failed to load " + url + " " + data + " " + status); }); } - } - }]); -})(Developer || (Developer = {})); - -///Please wait, fetching logs...
\nView previous container logs?
\n \nPlease wait, fetching logs...
\nView previous container logs?
\n \nduration: ' + y + ' seconds
'; + if (date) { + tooltip += 'started: ' + date + '
'; + } + if (result) { + tooltip += 'result: ' + result + '
'; + } + if (x) { + var data = buildsSucceeded; + var key = successBuildKey; + if (!successBuildKey && (!result || !result.startsWith("SUCC"))) { + data = buildsFailed; + key = failedBuildKey; + } + data.push({ + tooltip: tooltip, + color: color, + x: x, y: y }); + } }); - }; - $scope.countrySelect = function (y) { - if (y != 'all') { - $scope.countryFilter = []; - angular.forEach($scope.cityFilter, function (item) { - if (item.districtName == y) - $scope.countryFilter.push(item); + $scope.data = []; + if (buildsSucceeded.length) { + $scope.data.push({ + key: successBuildKey, + values: buildsSucceeded }); } - else - $scope.countryFilter = $scope.cityFilter; - $scope.tableParams.settings({ - dataset: $scope.countryFilter - }); - }; - $scope.statusSelect = function (z) { - var tmp = []; - if ($scope.x == 'all') - tmp = $scope.model; - else - tmp = $scope.countryFilter; - var result = []; - if (z != 'all') { - angular.forEach(tmp, function (item) { - if ($scope.status[item.sysStatus].label == z) - result.push(item); - }); - $scope.tableParams.settings({ - dataset: result + if (buildsFailed.length) { + $scope.data.push({ + key: failedBuildKey, + values: buildsFailed }); } - else { - $scope.tableParams.settings({ - dataset: tmp + $scope.api.updateWithData($scope.data); + $timeout(function () { + $scope.api.update(); + }, 50); + } + function updateData() { + var metricsPath = $scope.jobId ? UrlHelpers.join("job", $scope.jobId, "fabric8/metrics") : "fabric8/metrics"; + var url = Kubernetes.kubernetesProxyUrlForServiceCurrentNamespace(Developer.jenkinsServiceNameAndPort, metricsPath); + Developer.log.info(""); + if (url && (!$scope.jenkins || Kubernetes.keepPollingModel)) { + $http.get(url, Developer.jenkinsHttpConfig). + success(function (data, status, headers, config) { + if (data) { + if (Developer.hasObjectChanged(data, $scope.entityChangedCache)) { + Developer.log.info("entity has changed!"); + $scope.metrics = data; + updateChartData(); + } + } + $scope.model.fetched = true; + Core.$apply($scope); + }). + error(function (data, status, headers, config) { + Developer.log.warn("Failed to load " + url + " " + data + " " + status); }); } - }; - $scope.quickCheck = function () { - updateSqlStatus("/java/console/api/filePackage/totalVerifySqlFile"); - }; - $scope.quitFile = function () { - updateSqlStatus("/java/console/api/filePackage/totalOnholeSqlFile"); - }; - $scope.help = function () { - ngDialog.open({ - template: 'statusHelp.html', - width: 900, - height: 600, - closeByDocument: false, - className: 'ngdialog-theme-default' - }); - }; - // watch for check all checkbox - $scope.$watch(function () { - return $scope.checkboxes.checked; - }, function (value) { - angular.forEach($scope.model, function (item) { - $scope.checkboxes.items[item.id] = value; - }); - }); - // watch for data checkboxes - $scope.$watch(function () { - return $scope.checkboxes.items; - }, function (values) { - $scope.checkable = false; - for (var index in values) { - if (values[index] == true) { - $scope.checkable = true; - break; + } + }]); +})(Developer || (Developer = {})); + +///已启用 | \r\n已停止 | \r\n\r\n {{volume.name}}\r\n | \r\n\r\n 云路径:{{volume.path}}\r\n | \r\n\r\n \r\n | \r\n\r\n 已用 {{volume.formatUsedSize}} / 共 {{volume.formatTotalSize}}\r\n | \r\n\r\n \r\n \r\n | \r\n
---|---|---|---|---|---|---|
\r\n \r\n \r\n | \r\n\r\n 服务器{{$index+1}}\r\n | \r\n\r\n {{row.ip}}\r\n | \r\n\r\n 存储路径:{{row.path}}\r\n | \r\n\r\n 已用 {{row.formatUsedSize}} / 共 {{row.formatAllSize}}\r\n | \r\n\r\n |
\r\n 是否删除:{{showDeleteVolume.item.name}} 云盘?\r\n
\r\nThere are no projects in this workspace.
\r\nThere are no tools currently available.
\r\nThere are no tools currently available.
\r\n当前没有可以查看的数据.
\r\n当前没有可以查看的数据.
\r\n\r\n \r\n | \r\n\r\n \r\n \r\n \r\n | \r\n\r\n \r\n Pod {{pod.idAbbrev}}\r\n \r\n \r\n IP:\r\n {{pod.status.podIP}}\r\n \r\n | \r\n \r\n \r\n | \r\n