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). - 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; + var url = Kubernetes.imageRepositoriesRestURL(); + $http.get(url). + success(function (data, status, headers, config) { + if (data) { + //console.log("got data " + angular.toJson(data, true)); + $scope.imageRepositories = Kubernetes.enrichImageRepositories(data.items); + $scope.fetched = true; Core.$apply($scope); - }). - error(function (data, status, headers, config) { - Developer.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; } - $scope.labels.push({ - key: key, - title: value - }); + data.push({ + tooltip: tooltip, + color: color, + x: x, y: y }); + } + }); + $scope.data = []; + if (buildsSucceeded.length) { + $scope.data.push({ + key: successBuildKey, + values: buildsSucceeded }); - // lets sort by key but lets make sure that we weight certain labels so they are first - $scope.labels = $scope.labels.sort(function (a, b) { - function getWeight(key) { - return labelKeyWeights[key] || 0; - } - var n1 = a["key"]; - var n2 = b["key"]; - var w1 = getWeight(n1); - var w2 = getWeight(n2); - var diff = w1 - w2; - if (diff < 0) { - return -1; - } - else if (diff > 0) { - return 1; - } - if (n1 && n2) { - if (n1 > n2) { - return 1; - } - else if (n1 < n2) { - return -1; - } - else { - return 0; - } - } - else { - if (n1 === n2) { - return 0; - } - else if (n1) { - return 1; - } - else { - return -1; + } + 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). + 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.handleClick = function (entity, labelType, value) { - // log.debug("handleClick, entity: ", entity, " key: ", labelType, " value: ", value); - $scope.$emit('labelFilterUpdate', value.title); + } + }]); +})(Developer || (Developer = {})); + +///\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.usedSize}}/共{{allSize}}\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.usedSize}}/共{{row.availableSize}}\r\n | \r\n
当前没有配置汇总库信息,请配置,否则汇总操作将不可用!
\r\nThere are no tools currently available.
\r\nThere are no tools currently available.
\r\nEnvironment is a logical place where deployments happen which maps to a kubernetes / openshift namespace. You will see environments here after you add a build.
\r\n New Build\r\n当前没有可以查看的任务列表!
\r\n\r\n Please choose the perspective you would like to use:\r\n
\r\n\r\n \r\n \r\n  Develop »\r\n \r\n
\r\n\r\n\r\n Work on projects and source code\r\n
\r\n\r\n \r\n \r\n Operate »\r\n \r\n
\r\n\r\n\r\n Manage and run Pods and Services\r\n
\r\nThere are no builds in this job.
\r\nThere are no jobs in this jenkins.
\r\nThere are no completed builds in this job.
\r\nThere are no pipeline stages in this build.
\r\nThere are no pipelines for this job.
\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 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
There are no deployment configurations available.
\r\n Create Deployment Configuration\r\n当前没有可以查看的任务列表!
\r\nThere are no hosts currently running.
\r\nThere are no image repositories available.
\r\n Create Image Repository\r\n\r\n Create a project by entering or copy/pasting the Git URL for a repository, and give the project a name. By default the name will be based on the repository name.\r\n
\r\n\r\n \r\n\r\n \r\n\r\nPipeline is a kind of build which uses Jenkins Workflow internally which has multiple Stages. You will see the active pipelines here after you add a build to this project
\r\nThere are no tools currently available.
\r\nThere are no tools currently available.
\r\nEnvironment is a logical place where deployments happen which maps to a kubernetes / openshift namespace. You will see environments here after you add a build.
\r\n New Build\r\n当前没有可以查看的任务列表!
\r\n\r\n Please choose the perspective you would like to use:\r\n
\r\n\r\n \r\n \r\n  Develop »\r\n \r\n
\r\n\r\n\r\n Work on projects and source code\r\n
\r\n\r\n \r\n \r\n Operate »\r\n \r\n
\r\n\r\n\r\n Manage and run Pods and Services\r\n
\r\nThere are no builds in this job.
\r\nThere are no jobs in this jenkins.
\r\nThere are no completed builds in this job.
\r\nThere are no pipeline stages in this build.
\r\nThere are no pipelines for this job.
\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