Skip to content

Commit 39a2785

Browse files
author
OpenShift Bot
committed
bump(github.com/openshift/origin-web-console): eae97da11583fba53ec33f3c389bf9042d26d5b5
1 parent 1145251 commit 39a2785

File tree

1 file changed

+134
-38
lines changed

1 file changed

+134
-38
lines changed

pkg/assets/bindata.go

Lines changed: 134 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5640,12 +5640,6 @@ var b = 0;
56405640
return a && a.forEach(function(a) {
56415641
a.state && a.state.running && b++;
56425642
}), b;
5643-
}, a.showDebugAction = function(c) {
5644-
if ("Completed" === _.get(a, "pod.status.phase")) return !1;
5645-
if (z(a.pod, "openshift.io/build.name")) return !1;
5646-
if (b("isDebugPod")(a.pod)) return !1;
5647-
var d = _.get(c, "state.waiting.reason");
5648-
return "ImagePullBackOff" !== d && "ErrImagePull" !== d && (!_.get(c, "state.running") || !c.ready);
56495643
}, a.$on("$destroy", function() {
56505644
g.unwatchAll(n), m(), $(window).off("resize.terminalsize");
56515645
});
@@ -11069,7 +11063,36 @@ a.model.editing = !1;
1106911063
};
1107011064
}
1107111065
};
11072-
}), angular.module("openshiftConsole").directive("podTemplate", function() {
11066+
}), angular.module("openshiftConsole").directive("containerStatuses", [ "$filter", function(a) {
11067+
return {
11068+
restrict:"E",
11069+
scope:{
11070+
pod:"=",
11071+
onDebugTerminal:"=?",
11072+
detailed:"=?"
11073+
},
11074+
templateUrl:"views/_container-statuses.html",
11075+
link:function(b) {
11076+
b.hasDebugTerminal = angular.isFunction(b.onDebugTerminal);
11077+
var c = a("isContainerTerminatedSuccessfully"), d = function(a) {
11078+
return _.every(a, c);
11079+
};
11080+
b.$watch("pod", function(a) {
11081+
b.initContainersTerminated = d(a.status.initContainerStatuses), b.expandInitContainers !== !1 && (b.expandInitContainers = !b.initContainersTerminated);
11082+
}), b.toggleInitContainer = function() {
11083+
b.expandInitContainers = !b.expandInitContainers;
11084+
}, b.showDebugAction = function(c) {
11085+
if ("Completed" === _.get(b.pod, "status.phase")) return !1;
11086+
if (a("annotation")(b.pod, "openshift.io/build.name")) return !1;
11087+
if (a("isDebugPod")(b.pod)) return !1;
11088+
var d = _.get(c, "state.waiting.reason");
11089+
return "ImagePullBackOff" !== d && "ErrImagePull" !== d && (!_.get(c, "state.running") || !c.ready);
11090+
}, b.debugTerminal = function(a) {
11091+
if (b.hasDebugTerminal) return b.onDebugTerminal.call(this, a);
11092+
};
11093+
}
11094+
};
11095+
} ]).directive("podTemplate", function() {
1107311096
return {
1107411097
restrict:"E",
1107511098
scope:{
@@ -11081,6 +11104,18 @@ addHealthCheckUrl:"@?"
1108111104
},
1108211105
templateUrl:"views/_pod-template.html"
1108311106
};
11107+
}).directive("podTemplateContainer", function() {
11108+
return {
11109+
restrict:"E",
11110+
scope:{
11111+
container:"=podTemplateContainer",
11112+
imagesByDockerReference:"=",
11113+
builds:"=",
11114+
detailed:"=?",
11115+
labelPrefix:"@?"
11116+
},
11117+
templateUrl:"views/_pod-template-container.html"
11118+
};
1108411119
}).directive("annotations", function() {
1108511120
return {
1108611121
restrict:"E",
@@ -14903,6 +14938,10 @@ return a.state.waiting && "CrashLoopBackOff" === a.state.waiting.reason;
1490314938
return function(a) {
1490414939
return a.state.terminated && 0 !== a.state.terminated.exitCode;
1490514940
};
14941+
}).filter("isContainerTerminatedSuccessfully", function() {
14942+
return function(a) {
14943+
return a.state.terminated && 0 === a.state.terminated.exitCode;
14944+
};
1490614945
}).filter("isContainerUnprepared", function() {
1490714946
return function(a) {
1490814947
if (!a.state.running || a.ready !== !1 || !a.state.running.startedAt) return !1;
@@ -16161,6 +16200,64 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
1616116200
);
1616216201

1616316202

16203+
$templateCache.put('views/_container-statuses.html',
16204+
" <div ng-if=\"detailed && pod.status.initContainerStatuses.length\">\n" +
16205+
"<h4 class=\"mar-bottom-xl\" row ng-if=\"initContainersTerminated\">\n" +
16206+
"<span><i class=\"fa fa-check text-success\"></i></span>\n" +
16207+
"<span flex>\n" +
16208+
"<ng-pluralize count=\"pod.status.initContainerStatuses.length\" when=\"{'1': '&nbsp;Init container {{pod.status.initContainerStatuses[0].name}}','other': '&nbsp;{} init containers'}\">\n" +
16209+
"</ng-pluralize>\n" +
16210+
"completed successfully\n" +
16211+
"</span>\n" +
16212+
"<span ng-if=\"initContainersTerminated\">\n" +
16213+
"<a class=\"page-header-link\" href=\"\" ng-click=\"toggleInitContainer()\">\n" +
16214+
"<span ng-if=\"!expandInitContainers\">Show</span>\n" +
16215+
"<span ng-if=\"expandInitContainers\">Hide</span>\n" +
16216+
"Details\n" +
16217+
"</a>\n" +
16218+
"</span>\n" +
16219+
"</h4>\n" +
16220+
"<div class=\"animate-if\" ng-if=\"expandInitContainers\" ng-repeat=\"containerStatus in pod.status.initContainerStatuses track by containerStatus.name\">\n" +
16221+
"<h4 class=\"component-label\">Init container {{containerStatus.name}}</h4>\n" +
16222+
"<dl class=\"dl-horizontal left\">\n" +
16223+
"<dt>State:</dt>\n" +
16224+
"<dd>\n" +
16225+
"<kubernetes-object-describe-container-state container-state=\"containerStatus.state\"></kubernetes-object-describe-container-state>\n" +
16226+
"</dd>\n" +
16227+
"<dt ng-if=\"!(containerStatus.lastState | isEmptyObj)\">Last State</dt>\n" +
16228+
"<dd ng-if=\"!(containerStatus.lastState | isEmptyObj)\">\n" +
16229+
"<kubernetes-object-describe-container-state container-state=\"containerStatus.lastState\"></kubernetes-object-describe-container-state>\n" +
16230+
"</dd>\n" +
16231+
"<dt>Ready:</dt>\n" +
16232+
"<dd>{{containerStatus.ready}}</dd>\n" +
16233+
"<dt>Restart Count:</dt>\n" +
16234+
"<dd>{{containerStatus.restartCount}}</dd>\n" +
16235+
"</dl>\n" +
16236+
"</div>\n" +
16237+
"</div>\n" +
16238+
"<div ng-repeat=\"containerStatus in pod.status.containerStatuses track by containerStatus.name\">\n" +
16239+
"<h4>Container {{containerStatus.name}}</h4>\n" +
16240+
"<dl class=\"dl-horizontal left\">\n" +
16241+
"<dt>State:</dt>\n" +
16242+
"<dd>\n" +
16243+
"<kubernetes-object-describe-container-state container-state=\"containerStatus.state\"></kubernetes-object-describe-container-state>\n" +
16244+
"</dd>\n" +
16245+
"<dt ng-if=\"!(containerStatus.lastState | isEmptyObj)\">Last State</dt>\n" +
16246+
"<dd ng-if=\"!(containerStatus.lastState | isEmptyObj)\">\n" +
16247+
"<kubernetes-object-describe-container-state container-state=\"containerStatus.lastState\"></kubernetes-object-describe-container-state>\n" +
16248+
"</dd>\n" +
16249+
"<dt>Ready:</dt>\n" +
16250+
"<dd>{{containerStatus.ready}}</dd>\n" +
16251+
"<dt>Restart Count:</dt>\n" +
16252+
"<dd>{{containerStatus.restartCount}}</dd>\n" +
16253+
"<div ng-if=\"hasDebugTerminal && showDebugAction(containerStatus) && ('pods' | canI : 'create')\" class=\"debug-pod-action\">\n" +
16254+
"<a href=\"\" ng-click=\"debugTerminal(containerStatus.name)\" role=\"button\">Debug in Terminal</a>\n" +
16255+
"</div>\n" +
16256+
"</dl>\n" +
16257+
"</div>"
16258+
);
16259+
16260+
1616416261
$templateCache.put('views/_edit-request-limit.html',
1616516262
"<ng-form name=\"form\" ng-if=\"!requestCalculated || !limitCalculated\">\n" +
1616616263
"<h3>\n" +
@@ -16210,18 +16307,9 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
1621016307
);
1621116308

1621216309

16213-
$templateCache.put('views/_pod-template.html',
16214-
" <div ng-if=\"detailed && addHealthCheckUrl && !(podTemplate | hasHealthChecks)\" class=\"alert alert-info\">\n" +
16215-
"<span class=\"pficon pficon-info\" aria-hidden=\"true\"></span>\n" +
16216-
"<span ng-if=\"podTemplate.spec.containers.length === 1\">This container has no health checks</span>\n" +
16217-
"<span ng-if=\"podTemplate.spec.containers.length > 1\">Not all containers have health checks</span>\n" +
16218-
"to ensure your application is running correctly.\n" +
16219-
"<a ng-href=\"{{addHealthCheckUrl}}\" class=\"nowrap\">Add Health Checks</a>\n" +
16220-
"</div>\n" +
16221-
"<div class=\"pod-template-container\">\n" +
16222-
"<div class=\"pod-template-block\" ng-repeat=\"container in podTemplate.spec.containers\">\n" +
16223-
"<div class=\"pod-template\">\n" +
16224-
"<div class=\"component-label\">Container: {{container.name}}</div>\n" +
16310+
$templateCache.put('views/_pod-template-container.html',
16311+
" <div class=\"pod-template\">\n" +
16312+
"<div class=\"component-label\"><span ng-bind-template=\"{{labelPrefix||'Container'}}:\"></span> {{container.name}}</div>\n" +
1622516313
"<div row ng-if=\"container.image\" class=\"pod-template-image icon-row\">\n" +
1622616314
"<div class=\"icon-wrap\">\n" +
1622716315
"<span class=\"pficon pficon-image\" aria-hidden=\"true\"></span>\n" +
@@ -16376,6 +16464,31 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
1637616464
"<probe probe=\"container.livenessProbe\"></probe>\n" +
1637716465
"</div>\n" +
1637816466
"</div>\n" +
16467+
"</div>"
16468+
);
16469+
16470+
16471+
$templateCache.put('views/_pod-template.html',
16472+
" <div ng-if=\"detailed && addHealthCheckUrl && !(podTemplate | hasHealthChecks)\" class=\"alert alert-info\">\n" +
16473+
"<span class=\"pficon pficon-info\" aria-hidden=\"true\"></span>\n" +
16474+
"<span ng-if=\"podTemplate.spec.containers.length === 1\">Container {{podTemplate.spec.containers[0].name}} does not have health checks</span>\n" +
16475+
"<span ng-if=\"podTemplate.spec.containers.length > 1\">Not all containers have health checks</span>\n" +
16476+
"to ensure your application is running correctly.\n" +
16477+
"<a ng-href=\"{{addHealthCheckUrl}}\" class=\"nowrap\">Add Health Checks</a>\n" +
16478+
"</div>\n" +
16479+
"<div ng-if=\"detailed && podTemplate.spec.initContainers.length\">\n" +
16480+
"<h4>Init Containers</h4>\n" +
16481+
"<div class=\"pod-template-container\">\n" +
16482+
"<div class=\"pod-template-block\" ng-repeat=\"container in podTemplate.spec.initContainers\">\n" +
16483+
"<pod-template-container pod-template-container=\"container\" images-by-docker-reference=\"imagesByDockerReference\" builds=\"builds\" detailed=\"detailed\" label-prefix=\"Init Container\"></pod-template-container>\n" +
16484+
"</div>\n" +
16485+
"</div>\n" +
16486+
"</div>\n" +
16487+
"<div>\n" +
16488+
"<h4 ng-if=\"detailed\">Containers</h4>\n" +
16489+
"<div class=\"pod-template-container\">\n" +
16490+
"<div class=\"pod-template-block\" ng-repeat=\"container in podTemplate.spec.containers\">\n" +
16491+
"<pod-template-container pod-template-container=\"container\" images-by-docker-reference=\"imagesByDockerReference\" builds=\"builds\" detailed=\"detailed\"></pod-template-container>\n" +
1637916492
"<div extension-point extension-name=\"container-links\" extension-types=\"link dom\" extension-args=\"[container, podTemplate]\"></div>\n" +
1638016493
"</div>\n" +
1638116494
"</div>\n" +
@@ -17285,25 +17398,8 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
1728517398
"</span>\n" +
1728617399
"</dd>\n" +
1728717400
"</dl>\n" +
17288-
"<div ng-repeat=\"containerStatus in pod.status.containerStatuses | orderBy:'name'\">\n" +
17289-
"<h4>Container {{containerStatus.name}}</h4>\n" +
17290-
"<dl class=\"dl-horizontal left\">\n" +
17291-
"<dt>State:</dt>\n" +
17292-
"<dd>\n" +
17293-
"<kubernetes-object-describe-container-state container-state=\"containerStatus.state\"></kubernetes-object-describe-container-state>\n" +
17294-
"</dd>\n" +
17295-
"<dt ng-if=\"!(containerStatus.lastState | isEmptyObj)\">Last State</dt>\n" +
17296-
"<dd ng-if=\"!(containerStatus.lastState | isEmptyObj)\">\n" +
17297-
"<kubernetes-object-describe-container-state container-state=\"containerStatus.lastState\"></kubernetes-object-describe-container-state>\n" +
17298-
"</dd>\n" +
17299-
"<dt>Ready:</dt>\n" +
17300-
"<dd>{{containerStatus.ready}}</dd>\n" +
17301-
"<dt>Restart Count:</dt>\n" +
17302-
"<dd>{{containerStatus.restartCount}}</dd>\n" +
17303-
"<div ng-if=\"showDebugAction(containerStatus) && ('pods' | canI : 'create')\" class=\"debug-pod-action\">\n" +
17304-
"<a href=\"\" ng-click=\"debugTerminal(containerStatus.name)\" role=\"button\">Debug in Terminal</a>\n" +
17305-
"</div>\n" +
17306-
"</dl>\n" +
17401+
"<div>\n" +
17402+
"<container-statuses pod=\"pod\" on-debug-terminal=\"debugTerminal\" detailed=\"true\"></container-statuses>\n" +
1730717403
"</div>\n" +
1730817404
"</div>\n" +
1730917405
"<div class=\"col-lg-6\">\n" +

0 commit comments

Comments
 (0)